start work on domains by enabling them

This commit is contained in:
akhil 2013-11-11 14:07:47 -08:00
parent dc2377e28f
commit ca240b66a0
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,7 @@ source.lib.modules = \
crypto.js \
dgram.js \
dns.js \
domains.js \
events.js \
freelist.js \
fs.js \

View File

@ -564,6 +564,9 @@ exports.openStdin = function() {
return process.stdin;
}
exports._usingDomains = function() {
}
var Check = Packages.net.java.libuv.handles.CheckHandle;
var Idle = Packages.net.java.libuv.handles.IdleHandle;
var checkHandle = new Check(eventloop.loop());
@ -573,7 +576,7 @@ checkHandle.unref();
// During the lifetime of an immediate callback, we want to keep the loop running.
// This is why an Idle is started/stopped when the unrefed Check is started/stopped
// Nodejs core.cc
// Nodejs core.cc
var idleHandle = new Idle(eventloop.loop());
idleHandle.setIdleCallback(IdleImmediateDummy);
@ -602,7 +605,7 @@ Object.defineProperty(exports, '_needImmediateCallback', {
}
}
});
var signalHandle = new Signals(eventloop.loop());
// this handle should not keep the event loop from terminating
signalHandle.unref();