summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Laverdet <marcel@laverdet.com>2011-08-10 16:39:03 -0500
committerBen Noordhuis <info@bnoordhuis.nl>2012-02-04 22:19:56 +0100
commit11d1eca9f3c465045828e3a00b103620c8253258 (patch)
tree3af6acf01050bb1110ef05f1d27acddf6a263507 /src
parentf64989e63b9cf11c88e46b422de6234fc4699039 (diff)
downloadnode-11d1eca9f3c465045828e3a00b103620c8253258.tar.gz
Add explicit v8 locker
v8 requires a lock of each thread using the vm, but if none is explicitly is created it will implicitly create one for you. This creates issues when trying to build modules which use v8's multi-threading features because there's no lock to unlock.
Diffstat (limited to 'src')
-rw-r--r--src/node.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index 9ac528a85..cb37fef25 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -2633,6 +2633,7 @@ int Start(int argc, char *argv[]) {
argv = Init(argc, argv);
v8::V8::Initialize();
+ v8::Locker locker;
v8::HandleScope handle_scope;
// Create the one and only Context.