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: nodejs#50010
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
VoltrexKeyva authored Oct 4, 2023
1 parent fae1af0 commit 55ff640
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 @@ -795,7 +795,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 55ff640

Please sign in to comment.