#include "atomic_int32.h"
Public Member Functions | |
AtomicInt32 (int32 value) | |
int32 | value () const |
int32 | increment (int32 amount) |
void | set_value (int32 value) |
An int32 flag that can be set atomically and be visible to other threads. Please be extra careful with this --- it can go wrong in incomprehensible ways; most of the time, you probably want to use a mutex instead.