Skip to content

src: protect global state with mutexes

Protect environment variables and inherently per-process state (e.g. the process title) with mutexes, to better accomodate 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

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading