|
Boost-Commit : |
From: anthony_at_[hidden]
Date: 2007-10-09 08:45:46
Author: anthonyw
Date: 2007-10-09 08:45:46 EDT (Tue, 09 Oct 2007)
New Revision: 39838
URL: http://svn.boost.org/trac/boost/changeset/39838
Log:
fixed typo in pthread_cond_timedwait and ETIMEDOUT
Text files modified:
trunk/boost/thread/pthread/mutex.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/thread/pthread/mutex.hpp
==============================================================================
--- trunk/boost/thread/pthread/mutex.hpp (original)
+++ trunk/boost/thread/pthread/mutex.hpp 2007-10-09 08:45:46 EDT (Tue, 09 Oct 2007)
@@ -193,8 +193,8 @@
pthread_mutex_scoped_lock const _(&m);
while(is_locked)
{
- int const cond_res=pthread_cond_timewait(&cond,&m,&timeout);
- if(cond_res==ETIMEOUT)
+ int const cond_res=pthread_cond_timedwait(&cond,&m,&timeout);
+ if(cond_res==ETIMEDOUT)
{
return false;
}
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