diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ace/Thread_Manager.cpp | 6 | ||||
-rw-r--r-- | ace/Thread_Manager.h | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog index 8d8ec4a76dd..cb8c291ee46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 12 01:30:03 UTC 2006 Douglas C. Schmidt <schmidt@dre.vanderbilt.edu> + + * ace/Thread_Manager.cpp (wait): Changed the flag parameters to be + bool rathet than int. Thanks to Johnny for this suggestion. + Sat Jun 10 22:32:03 UTC 2006 Steve Huston <shuston@riverace.com> * ACE-INSTALL.html: Corrected a bunch of platform build things and diff --git a/ace/Thread_Manager.cpp b/ace/Thread_Manager.cpp index 3a541064987..4daf221f8d9 100644 --- a/ace/Thread_Manager.cpp +++ b/ace/Thread_Manager.cpp @@ -1738,14 +1738,14 @@ ACE_Thread_Manager::exit (ACE_THR_FUNC_RETURN status, int do_thr_exit) int ACE_Thread_Manager::wait (const ACE_Time_Value *timeout, - int abandon_detached_threads, - int use_absolute_time) + bool abandon_detached_threads, + bool use_absolute_time) { ACE_TRACE ("ACE_Thread_Manager::wait"); ACE_Time_Value local_timeout; // Check to see if we're using absolute time or not. - if (use_absolute_time == 0 && timeout != 0) + if (use_absolute_time == false && timeout != 0) { local_timeout = *timeout; local_timeout += ACE_OS::gettimeofday (); diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h index f2805371ef4..d33f78a48c9 100644 --- a/ace/Thread_Manager.h +++ b/ace/Thread_Manager.h @@ -630,8 +630,8 @@ public: * you can use @c wait_grp() instead. */ int wait (const ACE_Time_Value *timeout = 0, - int abandon_detached_threads = 0, - int use_absolute_time = 1); + bool abandon_detached_threads = false, + bool use_absolute_time = true); /// Join a thread specified by <tid>. Do not wait on a detached thread. int join (ACE_thread_t tid, ACE_THR_FUNC_RETURN *status = 0); |