Skip to content

Commit 14a91a5

Browse files
committed
Error when using C++11 std threading
1 parent 64861ce commit 14a91a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/allocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class PoolAllocatorImpl: public Allocator
6868
{
6969
unique_lock guard(used_lock);
7070
while (used[0] && used[1])
71-
available_cond.wait(used_lock);
71+
WAIT_CONDITION(available_cond, used_lock, guard);
7272

7373
if (!used[0]) {
7474
if (buffers[0] == NULL)

0 commit comments

Comments
 (0)