Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-04-10 11:52:02


Author: anthonyw
Date: 2008-04-10 11:52:01 EDT (Thu, 10 Apr 2008)
New Revision: 44152
URL: http://svn.boost.org/trac/boost/changeset/44152

Log:
Added native_handle to condition_variable on pthreads
Text files modified:
   trunk/boost/thread/pthread/condition_variable_fwd.hpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/boost/thread/pthread/condition_variable_fwd.hpp
==============================================================================
--- trunk/boost/thread/pthread/condition_variable_fwd.hpp (original)
+++ trunk/boost/thread/pthread/condition_variable_fwd.hpp 2008-04-10 11:52:01 EDT (Thu, 10 Apr 2008)
@@ -58,6 +58,12 @@
             return timed_wait(m,get_system_time()+wait_duration,pred);
         }
 
+ typedef pthread_cond_t* native_handle_type;
+ native_handle_type native_handle()
+ {
+ return &cond;
+ }
+
         void notify_one();
         void notify_all();
     };


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk