diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-12-14 00:02:57 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-12-18 10:56:49 -0800 |
commit | eef6504cf7b95ada170ec9878089ce57fde551d8 (patch) | |
tree | 43a35f63b1330bf1878872295383d47e899e507f /src/async_wrap.h | |
parent | 321e296371383fd63131d21c1121e22163ddeb86 (diff) | |
download | android-node-v8-eef6504cf7b95ada170ec9878089ce57fde551d8.tar.gz android-node-v8-eef6504cf7b95ada170ec9878089ce57fde551d8.tar.bz2 android-node-v8-eef6504cf7b95ada170ec9878089ce57fde551d8.zip |
src: schedule destroy hooks in BeforeExit early during bootstrap
Instead of doing it in the `internalBinding('async_wrap')`
initialization whose first call is uncertain depending on how
the native modules are loaded in JS land during bootstrap.
PR-URL: https://github.com/nodejs/node/pull/25020
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/async_wrap.h')
-rw-r--r-- | src/async_wrap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/async_wrap.h b/src/async_wrap.h index 523d620b0a..f7fc149c94 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -141,6 +141,7 @@ class AsyncWrap : public BaseObject { static void EmitTraceEventAfter(ProviderType type, double async_id); void EmitTraceEventDestroy(); + static void DestroyAsyncIdsCallback(Environment* env, void* data); inline ProviderType provider_type() const; |