diff options
Diffstat (limited to 'ACE/examples/Threads/reader_writer.cpp')
-rw-r--r-- | ACE/examples/Threads/reader_writer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/examples/Threads/reader_writer.cpp b/ACE/examples/Threads/reader_writer.cpp index 5344ba4d5b4..560e7cc1340 100644 --- a/ACE/examples/Threads/reader_writer.cpp +++ b/ACE/examples/Threads/reader_writer.cpp @@ -9,7 +9,7 @@ #include "ace/Get_Opt.h" #include "ace/Atomic_Op.h" -ACE_RCSID(Threads, reader_writer, "$Id$") + #if defined (ACE_HAS_THREADS) @@ -89,7 +89,7 @@ reader (void *) for (int iterations = 1; iterations <= n_iterations; iterations++) { - ACE_Read_Guard<ACE_RW_Mutex> g(rw_mutex); + ACE_READ_GUARD_RETURN (ACE_RW_Mutex, g, rw_mutex, 0); ++current_readers; @@ -127,7 +127,7 @@ writer (void *) iterations <= n_iterations; iterations++) { - ACE_Write_Guard<ACE_RW_Mutex> g(rw_mutex); + ACE_WRITE_GUARD_RETURN (ACE_RW_Mutex, g, rw_mutex, 0); ++current_writers; |