From 5e29afcb57fcd0add52c22596bd260899648992e Mon Sep 17 00:00:00 2001 From: Anthony Williams Date: Mon, 7 Mar 2011 08:39:37 +0000 Subject: [PATCH] Remove inner definition of cond_res from timed_wait so outer variable is set correctly [SVN r69621] --- include/boost/thread/pthread/condition_variable.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/thread/pthread/condition_variable.hpp b/include/boost/thread/pthread/condition_variable.hpp index 0219a755..160c7072 100644 --- a/include/boost/thread/pthread/condition_variable.hpp +++ b/include/boost/thread/pthread/condition_variable.hpp @@ -69,7 +69,7 @@ namespace boost detail::interruption_checker check_for_interruption(&internal_mutex,&cond); guard.activate(m); struct timespec const timeout=detail::get_timespec(wait_until); - int const cond_res=pthread_cond_timedwait(&cond,&internal_mutex,&timeout); + cond_res=pthread_cond_timedwait(&cond,&internal_mutex,&timeout); } this_thread::interruption_point(); if(cond_res==ETIMEDOUT)