]>
git.saurik.com Git - wxWidgets.git/blob - interface/atomic.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
11 // Global functions/macros
12 // ============================================================================
14 /** @ingroup group_funcmacro_atomic */
18 This function increments @a value in an atomic manner.
22 void wxAtomicInc(wxAtomicInt
& value
);
25 This function decrements value in an atomic manner. Returns 0 if value is 0
26 after decrementation or any non-zero value (not necessarily equal to the
27 value of the variable) otherwise.
31 wxInt32
wxAtomicDec(wxAtomicInt
& value
);