diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-15 07:16:07 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-15 07:16:07 +0000 |
commit | 7f5e003ad112a5486a42a40cb66ff9e7e39c4f60 (patch) | |
tree | 45d88c017ab5771db2ed3ff780d04a5ba2baff10 /ace/Atomic_Op.i | |
parent | 70acb4837fa044641733d8ec42efc703c9a95f99 (diff) | |
download | ATCD-7f5e003ad112a5486a42a40cb66ff9e7e39c4f60.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Atomic_Op.i')
-rw-r--r-- | ace/Atomic_Op.i | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ace/Atomic_Op.i b/ace/Atomic_Op.i index e405007406f..8c56bb42ba2 100644 --- a/ace/Atomic_Op.i +++ b/ace/Atomic_Op.i @@ -123,6 +123,16 @@ ACE_Atomic_Op<ACE_LOCK, TYPE>::value (void) const return this->value_; } +template <class ACE_LOCK, class TYPE> ACE_INLINE TYPE & +ACE_Atomic_Op<ACE_LOCK, TYPE>::value_i (void) +{ + // Explicitly return <value_> (by reference). This gives the user + // full, unrestricted access to the underlying value. This method + // will usually be used in conjunction with explicit access to the + // lock. Use with care ;-) + return this->value_; +} + template <class ACE_LOCK, class TYPE> ACE_INLINE void ACE_Atomic_Op<ACE_LOCK, TYPE>::operator= (const TYPE &i) { |