Skip to content

Commit

Permalink
clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Oct 10, 2023
1 parent e774840 commit 6f13ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/IOController_Posix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace extension {
}

// Locking here will ensure we won't return until poll is not running
std::lock_guard<std::mutex> lock(poll_mutex);
const std::lock_guard<std::mutex> lock(poll_mutex);
}

public:
Expand Down Expand Up @@ -351,7 +351,7 @@ namespace extension {

// Wait for an event to happen on one of our file descriptors
/* mutex scope */ {
std::lock_guard<std::mutex> lock(poll_mutex);
const std::lock_guard<std::mutex> lock(poll_mutex);
if (::poll(watches.data(), nfds_t(watches.size()), -1) < 0) {
throw std::system_error(
network_errno,
Expand Down

0 comments on commit 6f13ea4

Please sign in to comment.