vm: add support for timeout argument
authorAndrew Paprocki <andrew@ishiboo.com>
Mon, 8 Oct 2012 19:24:08 +0000 (21:24 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 29 Apr 2013 21:38:19 +0000 (23:38 +0200)
commitc081809344bd6e35c49a1c573b954583c0e3a27d
treea7af5b33ad88c476f04aff653bcb8d543b2eb150
parentb5c172138c8c27048f969ea9891f93474d937e19
vm: add support for timeout argument

Add a watchdog class which executes a timer in a separate event loop in
a separate thread that will terminate v8 execution if it expires.

Add timeout argument to functions in vm module which use the watchdog
if a non-zero timeout is specified.
doc/api/vm.markdown
lib/module.js
node.gyp
src/node.js
src/node_script.cc
src/node_watchdog.cc [new file with mode: 0644]
src/node_watchdog.h [new file with mode: 0644]
test/simple/test-vm-run-timeout.js [new file with mode: 0644]