summaryrefslogtreecommitdiffstats
path: root/raul/AtomicInt.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-01-23 02:02:39 +0000
committerDavid Robillard <d@drobilla.net>2007-01-23 02:02:39 +0000
commit32874d5dcb4867d966f25cd9b2953c9644d97027 (patch)
treec38428ae638d7b2b67884ee894947849d88de144 /raul/AtomicInt.h
parentaa454620bff8b6c5dcd4e0e379726307ad1918da (diff)
downloadraul-32874d5dcb4867d966f25cd9b2953c9644d97027.tar.gz
raul-32874d5dcb4867d966f25cd9b2953c9644d97027.tar.bz2
raul-32874d5dcb4867d966f25cd9b2953c9644d97027.zip
More work on multi-writer queue (SRMWQueue), proper unit test.
git-svn-id: http://svn.drobilla.net/lad/raul@267 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/AtomicInt.h')
-rw-r--r--raul/AtomicInt.h4
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); }