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 and debadree25 committed Apr 15, 2024
1 parent e290ec0 commit d1b03e0
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 d1b03e0

Please sign in to comment.