node: add AsyncListener support
authorTrevor Norris <trev.norris@gmail.com>
Tue, 24 Sep 2013 21:12:11 +0000 (14:12 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Thu, 31 Oct 2013 21:17:51 +0000 (14:17 -0700)
commitefa62fd9cc817434206d9fd8592b7bbeaa240e9c
treed3385ab0c74b20fab8d4e53cfa8408dafec69492
parent21fbbd579080bab569c66100471a4c7b462bb0d6
node: add AsyncListener support

AsyncListener is a JS API that works in tandem with the AsyncWrap class
to allow the user to be alerted to key events in the life cycle of an
asynchronous event. The AsyncWrap class has its own MakeCallback
implementation that core will be migrated to use, and uses state sharing
techniques to allow quicker communication between JS and C++ whether the
async event callbacks need to be called.
26 files changed:
lib/timers.js
node.gyp
src/async-wrap-inl.h [new file with mode: 0644]
src/async-wrap.h [new file with mode: 0644]
src/env-inl.h
src/env.h
src/fs_event_wrap.cc
src/handle_wrap.cc
src/handle_wrap.h
src/node.cc
src/node.js
src/node_file.cc
src/node_internals.h
src/pipe_wrap.cc
src/process_wrap.cc
src/req_wrap.h
src/signal_wrap.cc
src/stream_wrap.cc
src/tcp_wrap.cc
src/timer_wrap.cc
src/udp_wrap.cc
test/simple/test-asynclistener-error.js [new file with mode: 0644]
test/simple/test-asynclistener-multi-timeout.js [new file with mode: 0644]
test/simple/test-asynclistener-throw-before-infinite-recursion.js [new file with mode: 0644]
test/simple/test-asynclistener.js [new file with mode: 0644]
test/simple/test-domain-http-server.js