summaryrefslogtreecommitdiff
path: root/ACE/ace/Atomic_Op_T.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Atomic_Op_T.h')
-rw-r--r--ACE/ace/Atomic_Op_T.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ACE/ace/Atomic_Op_T.h b/ACE/ace/Atomic_Op_T.h
index 75ca728351a..1e3c53a3f3a 100644
--- a/ACE/ace/Atomic_Op_T.h
+++ b/ACE/ace/Atomic_Op_T.h
@@ -207,6 +207,9 @@ public:
ACE_Atomic_Op_Ex<ACE_LOCK, TYPE> &operator= (
ACE_Atomic_Op_Ex<ACE_LOCK, TYPE> const & rhs);
+ /// Exchange value with @a newval.
+ TYPE exchange (TYPE newval);
+
/// Explicitly return @c value_.
TYPE value (void) const;
@@ -318,6 +321,9 @@ public:
/// Atomically check if @c value_ less than @a rhs.
bool operator< (arg_type rhs) const;
+ /// Exchange value with @a newval.
+ TYPE exchange (TYPE newval);
+
/// Explicitly return @c value_.
TYPE value (void) const;