mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
Merge branch 'master' of https://github.com/mutouyun/cpp-ipc
This commit is contained in:
commit
f59d94ee17
@ -176,8 +176,7 @@ public:
|
||||
IPC_UNUSED_ auto guard = unique_ptr(&counter_, [](decltype(counter_)* c) {
|
||||
c->fetch_sub(1, std::memory_order_release);
|
||||
});
|
||||
sem_.wait_if(std::forward<F>(pred));
|
||||
return true;
|
||||
return sem_.wait_if(std::forward<F>(pred));
|
||||
}
|
||||
|
||||
void notify(handle_t h) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user