Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2015-02-06 01:54:12 +0300
committerTrevor Norris <trev.norris@gmail.com>2015-02-06 02:10:13 +0300
commit05f4dff97519ada5d3149a16ca9e5a04df948a61 (patch)
tree363d26473eb18d943e77547e1ba806a704518139 /src/env.h
parent10277d2e57ee7fe9e0e3f63f10b9ea521e86e7f0 (diff)
asyncwrap: fix constructor condition for early ret
AsyncWrap should always properly propagate asynchronous calls to any child that is created. Regardless whether kCallInitHook is currently active. The previous logic would always return early if kCallInitHook wasn't set. PR-URL: https://github.com/iojs/io.js/pull/732 Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 8dc9c968835..f28d5ffad2a 100644
--- a/src/env.h
+++ b/src/env.h
@@ -395,6 +395,9 @@ class Environment {
inline bool using_domains() const;
inline void set_using_domains(bool value);
+ inline bool using_asyncwrap() const;
+ inline void set_using_asyncwrap(bool value);
+
inline bool printed_error() const;
inline void set_printed_error(bool value);
@@ -479,6 +482,7 @@ class Environment {
ares_task_list cares_task_list_;
bool using_smalloc_alloc_cb_;
bool using_domains_;
+ bool using_asyncwrap_;
bool printed_error_;
debugger::Agent debugger_agent_;