diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-05-05 17:47:02 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-05-12 17:32:05 +0200 |
commit | a89cc2886ecec5bd9b8b3f803a6658afb90e21b2 (patch) | |
tree | 6cf4ad7a50f8aa1451d4bb5a869e6f70ece03e5b /src/node_internals.h | |
parent | 2df99ac095f056350cf8b954059a6068b6ef41c8 (diff) | |
download | node-new-a89cc2886ecec5bd9b8b3f803a6658afb90e21b2.tar.gz |
src: protect global state with mutexes
Protect environment variables and inherently per-process state with
mutexes, to better accommodate Node’s usage in
multi-threading environments.
Thanks to Stephen Belanger for reviewing this change in its original PR.
Refs: https://github.com/ayojs/ayo/pull/82
PR-URL: https://github.com/nodejs/node/pull/20542
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index e5ea575ebc..e15df78ffd 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -25,6 +25,7 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "node.h" +#include "node_mutex.h" #include "node_persistent.h" #include "util-inl.h" #include "env-inl.h" |