We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f0023a commit b0895dfCopy full SHA for b0895df
rmw_cyclonedds_cpp/src/rmw_node.cpp
@@ -2221,7 +2221,7 @@ static void clean_waitset_caches()
2221
used ... */
2222
std::lock_guard<std::mutex> lock(gcdds.lock);
2223
for (auto && ws : gcdds.waitsets) {
2224
- std::unique_lock<std::mutex> lock2(ws->lock, std::try_to_lock);
+ std::unique_lock<std::mutex> lock2{ws->lock, std::try_to_lock};
2225
if (lock2.owns_lock()) {
2226
waitset_detach(ws);
2227
}
0 commit comments