18 #ifndef _DECAF_UTIL_CONCURRENT_ATOMIC_ATOMICBOOLEAN_H_ 19 #define _DECAF_UTIL_CONCURRENT_ATOMIC_ATOMICBOOLEAN_H_ 26 namespace concurrent {
64 return value == 0 ? false :
true;
71 void set(
bool newValue) {
72 this->value = newValue ? 1 : 0;
84 bool compareAndSet(
bool expect,
bool update);
92 bool getAndSet(
bool newValue);
98 std::string toString()
const;
A boolean value that may be updated atomically.
Definition: AtomicBoolean.h:34
#define DECAF_API
Definition: Config.h:29
virtual ~AtomicBoolean()
Definition: AtomicBoolean.h:57
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25