diff options
Diffstat (limited to 'raul/AtomicInt.h')
-rw-r--r-- | raul/AtomicInt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/raul/AtomicInt.h b/raul/AtomicInt.h index 2678f31..cc50fb9 100644 --- a/raul/AtomicInt.h +++ b/raul/AtomicInt.h @@ -55,7 +55,9 @@ public: inline AtomicInt& operator--() // prefix { g_atomic_int_add(&_val, -1); return *this; } - /** Set value to newval iff current value is oldval */ + /** Set value to newval iff current value is oldval. + * @return whether set succeeded. + */ inline bool compare_and_exchange(int oldval, int newval) { return g_atomic_int_compare_and_exchange(&_val, oldval, newval); } |