diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-03-07 13:48:52 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-03-11 18:20:38 +0100 |
commit | d3f174faab55662226ced53bef6bb2040352a825 (patch) | |
tree | 06724215b97d8efa9ce0538a5113b1bdb2766827 /src/env-inl.h | |
parent | ddcc00bc1e8cc5815c942e1c4713ce92e7a27d40 (diff) | |
download | node-new-d3f174faab55662226ced53bef6bb2040352a825.tar.gz |
src: add convenience ctor for async trigger id scope
PR-URL: https://github.com/nodejs/node/pull/19204
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r-- | src/env-inl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/env-inl.h b/src/env-inl.h index 8883903cb1..31f2af4024 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -179,6 +179,9 @@ inline void Environment::AsyncHooks::clear_async_id_stack() { fields_[kStackLength] = 0; } +// The DefaultTriggerAsyncIdScope(AsyncWrap*) constructor is defined in +// async_wrap-inl.h to avoid a circular dependency. + inline Environment::AsyncHooks::DefaultTriggerAsyncIdScope ::DefaultTriggerAsyncIdScope(Environment* env, double default_trigger_async_id) |