]> git.saurik.com Git - wxWidgets.git/blob - interface/atomic.h
Finished review/fixes of GDI category of functions and macros.
[wxWidgets.git] / interface / atomic.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: atomic.h
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9
10 // ============================================================================
11 // Global functions/macros
12 // ============================================================================
13
14 /** @ingroup group_funcmacro_atomic */
15 //@{
16
17 /**
18 This function increments @a value in an atomic manner.
19
20 @header{wx/atomic.h}
21 */
22 void wxAtomicInc(wxAtomicInt& value);
23
24 /**
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.
28
29 @header{wx/atomic.h}
30 */
31 wxInt32 wxAtomicDec(wxAtomicInt& value);
32
33 //@}
34