This commit is contained in:
mutouyun 2019-02-13 06:45:59 +08:00
commit f59d94ee17

View File

@ -176,8 +176,7 @@ public:
IPC_UNUSED_ auto guard = unique_ptr(&counter_, [](decltype(counter_)* c) { IPC_UNUSED_ auto guard = unique_ptr(&counter_, [](decltype(counter_)* c) {
c->fetch_sub(1, std::memory_order_release); c->fetch_sub(1, std::memory_order_release);
}); });
sem_.wait_if(std::forward<F>(pred)); return sem_.wait_if(std::forward<F>(pred));
return true;
} }
void notify(handle_t h) { void notify(handle_t h) {