diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-01-21 01:33:16 +0400 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-02-06 01:30:56 +0400 |
commit | 4a9af3fecb4baf677f265e2e6e34a674a53810a6 (patch) | |
tree | 3e96cf57bc7f9d47ebe7a177acc7a2d18dc13bdd /src/signal_wrap.cc | |
parent | c9abb59638bc4bc64176ded80ebdc05d066ad0db (diff) |
async_wrap: add provider types/pass to constructor
These will be used to allow users to filter for which types of calls
they wish their callbacks to run.
Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
Diffstat (limited to 'src/signal_wrap.cc')
-rw-r--r-- | src/signal_wrap.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index 74eb830aacb..dbf4b949e64 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -72,7 +72,10 @@ class SignalWrap : public HandleWrap { } SignalWrap(Environment* env, Handle<Object> object) - : HandleWrap(env, object, reinterpret_cast<uv_handle_t*>(&handle_)) { + : HandleWrap(env, + object, + reinterpret_cast<uv_handle_t*>(&handle_), + AsyncWrap::PROVIDER_SIGNALWRAP) { int r = uv_signal_init(env->event_loop(), &handle_); assert(r == 0); } |