diff options
author | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2019-06-27 12:52:28 -0700 |
---|---|---|
committer | Gabriel Schulhof <gabriel.schulhof@intel.com> | 2019-07-02 16:14:59 -0700 |
commit | d3b10f66bd4943f7da9aa25415ea6900d7f48086 (patch) | |
tree | 540403c27b7c2146ef12ffaca5e8dfa90965584b /doc | |
parent | 3ab457ec15a1aa54c8563f0416358c16fc32dce4 (diff) | |
download | android-node-v8-d3b10f66bd4943f7da9aa25415ea6900d7f48086.tar.gz android-node-v8-d3b10f66bd4943f7da9aa25415ea6900d7f48086.tar.bz2 android-node-v8-d3b10f66bd4943f7da9aa25415ea6900d7f48086.zip |
src: use thread_local to declare modpending
The pointer used to hold an incoming dynamically loaded module's
`node::node_module` structure needs to be thread-local. So far this was
done with `uv_key_set()` and `uv_key_get()`. The language now supports
the `thread_local` keyword which makes implementing this a lot cleaner.
PR-URL: https://github.com/nodejs/node/pull/28456
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions