worker: add mutex lock to MessagePort ctor · nodejs/node@e70aa30 · GitHub
Skip to content

Commit e70aa30

Browse files
committed
worker: add mutex lock to MessagePort ctor
Automated tooling for race condition detection reports this as a possible problem. It’s unlikely that something bad would happen here (beyond maybe calling `TriggerAsync()` twice), but adding this should be okay. PR-URL: #25911 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2009f18 commit e70aa30

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/node_messaging.cc

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)