69 return (0 != this->
flag);
A thread-safe flag variable.
Definition safeflag.h:18
SafeFlag()
constructor
Definition safeflag.h:39
void Set()
set the flag
Definition safeflag.h:49
int volatile flag
Definition safeflag.h:32
bool Test() const
test if the flag is set
Definition safeflag.h:67
void Clear()
clear the flag
Definition safeflag.h:58
bool TestAndClearIfSet()
test if flag is set, if yes, clear flag
Definition safeflag.h:76
int Exchange(int volatile *dest, int value)
interlocked exchange
Definition gccinterlocked.cc:94
int CompareExchange(int volatile *dest, int exchange, int comparand)
interlocked compare-exchange
Definition gccinterlocked.cc:112
The Jobs2 system provides a set of threads and a pool of jobs from which threads can pickup work.
Definition jobs2.h:16