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

Merge branch 'develop'

This commit is contained in:
Vicente J. Botet Escriba
2014-07-06 18:48:30 +02:00

View File

@@ -320,7 +320,9 @@ namespace boost
{
if (closed(lk)) return queue_op_status::closed;
}
wait_until_not_empty(lk);
bool has_been_closed = false;
wait_until_not_empty(lk, has_been_closed);
if (has_been_closed) return queue_op_status::closed;
pull_front(elem, lk);
return queue_op_status::success;
}