Go to the documentation of this file.
18 #ifndef _DECAF_UTIL_CONCURRENT_ATOMIC_ATOMICINTEGER_H_
19 #define _DECAF_UTIL_CONCURRENT_ATOMIC_ATOMICINTEGER_H_
27 namespace concurrent {
74 void set(
int newValue ) {
75 this->value = newValue;
83 int getAndSet(
int newValue );
94 bool compareAndSet(
int expect,
int update );
100 int getAndIncrement();
106 int getAndDecrement();
113 int getAndAdd(
int delta );
119 int incrementAndGet();
125 int decrementAndGet();
132 int addAndGet(
int delta );
138 std::string toString()
const;
147 int intValue()
const;
156 long long longValue()
const;
165 float floatValue()
const;
174 double doubleValue()
const;