Browse Source

src: add using_domains to node_internals

Make it easy to check if domains are in use
v0.11.1-release
Trevor Norris 12 years ago
committed by Ben Noordhuis
parent
commit
deda899d77
  1. 2
      src/node.cc
  2. 3
      src/node_internals.h

2
src/node.cc

@ -133,7 +133,7 @@ static bool use_debug_agent = false;
static bool debug_wait_connect = false; static bool debug_wait_connect = false;
static int debug_port=5858; static int debug_port=5858;
static int max_stack_size = 0; static int max_stack_size = 0;
static bool using_domains = false; bool using_domains = false;
// used by C++ modules as well // used by C++ modules as well
bool no_deprecation = false; bool no_deprecation = false;

3
src/node_internals.h

@ -110,6 +110,9 @@ v8::Handle<v8::Value> FromConstructorTemplate(
v8::Persistent<v8::FunctionTemplate> t, v8::Persistent<v8::FunctionTemplate> t,
const v8::Arguments& args); const v8::Arguments& args);
// allow for quick domain check
extern bool using_domains;
} // namespace node } // namespace node
#endif // SRC_NODE_INTERNALS_H_ #endif // SRC_NODE_INTERNALS_H_

Loading…
Cancel
Save