mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
消除vs编译时的warning
This commit is contained in:
parent
f25668c4c2
commit
8e070076fc
@ -62,12 +62,12 @@ public:
|
||||
}
|
||||
|
||||
bool notify() noexcept {
|
||||
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier
|
||||
{ IPC_UNUSED_ std::lock_guard<ipc::sync::mutex> guard{lock_}; } // barrier
|
||||
return cond_.notify(lock_);
|
||||
}
|
||||
|
||||
bool broadcast() noexcept {
|
||||
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier
|
||||
{ IPC_UNUSED_ std::lock_guard<ipc::sync::mutex> guard{lock_}; } // barrier
|
||||
return cond_.broadcast(lock_);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user