消除vs编译时的warning

This commit is contained in:
mutouyun 2022-02-04 16:44:44 +08:00
parent f25668c4c2
commit 8e070076fc

View File

@ -62,12 +62,12 @@ public:
} }
bool notify() noexcept { 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_); return cond_.notify(lock_);
} }
bool broadcast() noexcept { 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_); return cond_.broadcast(lock_);
} }