27int Add(
int volatile* var,
int add);
31int Or(
int volatile* var,
int value);
35int And(
int volatile* var,
int value);
39int Xor(
int volatile* var,
int value);
43int Exchange(
int volatile* dest,
int value);
Provide simple atomic operations on memory variables.
Nebula compiler specific defines and configuration.
int Decrement(int volatile *var)
interlocked decrement, return result
Definition gccinterlocked.cc:157
int And(int volatile *var, int add)
interlocked and
Definition gccinterlocked.cc:58
int Or(int volatile *var, int add)
interlocked or
Definition gccinterlocked.cc:40
void * ExchangePointer(void *volatile *dest, void *value)
interlocked exchange
Definition gccinterlocked.cc:130
int Add(int volatile *var, int add)
interlocked add
Definition gccinterlocked.cc:22
int Exchange(int volatile *dest, int value)
interlocked exchange
Definition gccinterlocked.cc:94
int Xor(int volatile *var, int add)
interlocked xor
Definition gccinterlocked.cc:76
int CompareExchange(int volatile *dest, int exchange, int comparand)
interlocked compare-exchange
Definition gccinterlocked.cc:112
int Increment(int volatile *var)
interlocked increment, return result
Definition gccinterlocked.cc:148
void * CompareExchangePointer(void *volatile *dest, void *exchange, void *comparand)
interlocked compare-exchange pointer
Definition gccinterlocked.cc:139
The Jobs2 system provides a set of threads and a pool of jobs from which threads can pickup work.
Definition jobs2.h:16
volatile int64 AtomicCounter64
Definition interlocked.h:20
volatile int AtomicCounter
Definition interlocked.h:19
Definition interlocked.h:111
int64 And(int64 mask)
And.
Definition interlocked.h:128
int64 Increment(int64 incr)
Increment and return new value.
Definition interlocked.h:143
int64 Add(int64 add)
Add.
Definition interlocked.h:113
int64 CompareExchange(int64 exchange, int64 comparand)
Compare and exchange.
Definition interlocked.h:138
int64 Sub(int64 sub)
Subtract.
Definition interlocked.h:118
volatile int64 value
Definition interlocked.h:153
int64 Decrement(int64 decr)
Decrement and return new value.
Definition interlocked.h:148
int64 Or(int64 mask)
Or.
Definition interlocked.h:123
int64 Exchange(int64 value)
Exchange.
Definition interlocked.h:133
Definition interlocked.h:64
volatile int value
Definition interlocked.h:107
int Increment(int incr)
Increment and return new value.
Definition interlocked.h:96
int Exchange(int value)
Exchange.
Definition interlocked.h:86
int Or(int mask)
Or.
Definition interlocked.h:76
int Decrement(int decr)
Decrement and return new value.
Definition interlocked.h:101
int CompareExchange(int exchange, int comparand)
Compare and exchange.
Definition interlocked.h:91
int Sub(int sub)
Subtract.
Definition interlocked.h:71
int And(int mask)
And.
Definition interlocked.h:81
int Add(int add)
Add.
Definition interlocked.h:66
Definition interlocked.h:157
volatile void * ptr
Definition interlocked.h:169
void * CompareExchange(void *exchange, void *comparand)
Compare and exchange.
Definition interlocked.h:164
void * Exchange(void *value)
Exchange.
Definition interlocked.h:159
int64_t int64
Definition types.h:37