addon: add AtExit() function
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 21 Apr 2012 05:13:25 +0000 (07:13 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 3 May 2012 14:11:42 +0000 (16:11 +0200)
commite4a8d2617b49727c4de09ad9ca9bc8fa270adf1e
treed458fa25c5d15b5d262db0168fa45a77a4e3c8fb
parent6f82b9f482f50c68064e4a27a03e05068b517516
addon: add AtExit() function

Lets native addons register exit hooks that run after the event loop has quit
but before the VM is killed.

Fixes #3147.
src/node.cc
src/node.h
test/addons/at-exit/binding.cc [new file with mode: 0644]
test/addons/at-exit/binding.gyp [new file with mode: 0644]
test/addons/at-exit/test.js [new file with mode: 0644]