]> git.saurik.com Git - wxWidgets.git/blame - interface/atomic.h
SF bug 1895101
[wxWidgets.git] / interface / atomic.h
CommitLineData
23324ae1 1/////////////////////////////////////////////////////////////////////////////
7c913512 2// Name: atomic.h
e54c96f1 3// Purpose: interface of global functions
7c913512
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
39fb8056
FM
9
10// ============================================================================
11// Global functions/macros
12// ============================================================================
13
14/** @ingroup group_funcmacro_atomic */
15//@{
16
7c913512 17/**
39fb8056 18 This function increments @a value in an atomic manner.
1ba0de2e
BP
19
20 @header{wx/atomic.h}
23324ae1
FM
21*/
22void wxAtomicInc(wxAtomicInt& value);
23
39fb8056 24/**
1ba0de2e
BP
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}
39fb8056
FM
30*/
31wxInt32 wxAtomicDec(wxAtomicInt& value);
23324ae1 32
39fb8056 33//@}
1ba0de2e 34