Skip to content

Commit

Permalink
use braces for constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed Mar 25, 2020
1 parent 5f0023a commit b0895df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_cyclonedds_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2221,7 +2221,7 @@ static void clean_waitset_caches()
used ... */
std::lock_guard<std::mutex> lock(gcdds.lock);
for (auto && ws : gcdds.waitsets) {
std::unique_lock<std::mutex> lock2(ws->lock, std::try_to_lock);
std::unique_lock<std::mutex> lock2{ws->lock, std::try_to_lock};
if (lock2.owns_lock()) {
waitset_detach(ws);
}
Expand Down

0 comments on commit b0895df

Please sign in to comment.