diff options
Diffstat (limited to 'examples/Threads/manual_event.cpp')
-rw-r--r-- | examples/Threads/manual_event.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/Threads/manual_event.cpp b/examples/Threads/manual_event.cpp index 04a2c56ac40..e59ae62e7e1 100644 --- a/examples/Threads/manual_event.cpp +++ b/examples/Threads/manual_event.cpp @@ -16,7 +16,7 @@ #include "ace/Thread_Manager.h" #if defined (ACE_HAS_THREADS) -static ACE_Atomic_Op <ACE_Thread_Mutex, int> amount_of_work = (u_long) 0; +static ACE_Atomic_Op <ACE_Thread_Mutex, int> amount_of_work = 0; class Pseudo_Barrier // = TITLE @@ -60,7 +60,7 @@ worker (void *arg) // work ACE_DEBUG ((LM_DEBUG, "(%t) working (%d secs)\n", ++::amount_of_work)); - ACE_OS::sleep (::amount_of_work); + ACE_OS::sleep (::amount_of_work.value ()); // synch with everybody else ACE_DEBUG ((LM_DEBUG, "(%t) waiting to synch with others \n")); @@ -68,7 +68,7 @@ worker (void *arg) // more work ACE_DEBUG ((LM_DEBUG, "(%t) more work (%d secs)\n", ++::amount_of_work)); - ACE_OS::sleep (amount_of_work); + ACE_OS::sleep (::amount_of_work.value ()); ACE_DEBUG ((LM_DEBUG, "(%t) dying \n")); |