From 55ff64001a372e31813f801fd7da86d015a7b4db Mon Sep 17 00:00:00 2001 From: Mohammed Keyvanzadeh Date: Wed, 4 Oct 2023 10:47:44 +0330 Subject: [PATCH] src: name scoped lock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Name a scoped lock to be consistent with all the others. PR-URL: https://github.com/nodejs/node/pull/50010 Reviewed-By: Ben Noordhuis Reviewed-By: Tobias Nießen --- src/node_messaging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_messaging.cc b/src/node_messaging.cc index d3d2070d623c80..8b53a3fb891d2d 100644 --- a/src/node_messaging.cc +++ b/src/node_messaging.cc @@ -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(1000)); } else {