diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2008-09-23 18:43:08 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2008-09-23 18:43:08 +0000 |
| commit | 3e33a73b2f351be2c4d7bbf71eab6320bebb8204 (patch) | |
| tree | 187ddcb2369a707713f7f263548ebaf94a93516a /cpp/src/qpid/sys/AtomicValue_gcc.h | |
| parent | 1af11d7c52307f2cdd98db9ea9595bade6abbc9d (diff) | |
| download | qpid-python-3e33a73b2f351be2c4d7bbf71eab6320bebb8204.tar.gz | |
Removed the state lock from the RdmaIO code
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@698276 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/AtomicValue_gcc.h')
| -rw-r--r-- | cpp/src/qpid/sys/AtomicValue_gcc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/AtomicValue_gcc.h b/cpp/src/qpid/sys/AtomicValue_gcc.h index da60edad65..d022b07c1d 100644 --- a/cpp/src/qpid/sys/AtomicValue_gcc.h +++ b/cpp/src/qpid/sys/AtomicValue_gcc.h @@ -57,7 +57,7 @@ class AtomicValue /** If current value == testval then set to newval. Returns true if the swap was performed. */ bool boolCompareAndSwap(T testval, T newval) { return __sync_bool_compare_and_swap(&value, testval, newval); } - T get() const { return const_cast<AtomicValue<T>*>(this)->fetchAndAdd(0); } + T get() const { return const_cast<AtomicValue<T>*>(this)->fetchAndAdd(static_cast<T>(0)); } private: T value; |
