Skip to content

Commit

Permalink
src: name scoped lock
Browse files Browse the repository at this point in the history
Name a scoped lock to be consistent with all the others.

PR-URL: #50010
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
VoltrexKeyva authored and targos committed Nov 11, 2023
1 parent 52b5693 commit 1eb2af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_messaging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ void MessagePort::OnMessage(MessageProcessingMode mode) {

size_t processing_limit;
if (mode == MessageProcessingMode::kNormalOperation) {
Mutex::ScopedLock(data_->mutex_);
Mutex::ScopedLock lock(data_->mutex_);
processing_limit = std::max(data_->incoming_messages_.size(),
static_cast<size_t>(1000));
} else {
Expand Down

0 comments on commit 1eb2af2

Please sign in to comment.