2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-26 07:02:12 +00:00

Remove inner definition of cond_res from timed_wait so outer variable

is set correctly


[SVN r69621]
This commit is contained in:
Anthony Williams
2011-03-07 08:39:37 +00:00
parent 0a1085d9be
commit 5e29afcb57

View File

@@ -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)