diff options
Diffstat (limited to 'src/mongo/scripting/engine_v8.cpp')
-rw-r--r-- | src/mongo/scripting/engine_v8.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/scripting/engine_v8.cpp b/src/mongo/scripting/engine_v8.cpp index 50477bbfb99..b2f913ce70a 100644 --- a/src/mongo/scripting/engine_v8.cpp +++ b/src/mongo/scripting/engine_v8.cpp @@ -373,7 +373,7 @@ namespace mongo { } void V8ScriptEngine::interrupt(unsigned opId) { - boost::lock_guard<boost::mutex> intLock(_globalInterruptLock); + stdx::lock_guard<stdx::mutex> intLock(_globalInterruptLock); OpIdToScopeMap::iterator iScope = _opToScopeMap.find(opId); if (iScope == _opToScopeMap.end()) { // got interrupt request for a scope that no longer exists @@ -386,7 +386,7 @@ namespace mongo { } void V8ScriptEngine::interruptAll() { - boost::lock_guard<boost::mutex> interruptLock(_globalInterruptLock); + stdx::lock_guard<stdx::mutex> interruptLock(_globalInterruptLock); for (OpIdToScopeMap::iterator iScope = _opToScopeMap.begin(); iScope != _opToScopeMap.end(); ++iScope) { iScope->second->kill(); @@ -394,7 +394,7 @@ namespace mongo { } void V8Scope::registerOperation(OperationContext* txn) { - boost::lock_guard<boost::mutex> giLock(_engine->_globalInterruptLock); + stdx::lock_guard<stdx::mutex> giLock(_engine->_globalInterruptLock); invariant(_opId == 0); _opId = txn->getOpID(); _engine->_opToScopeMap[_opId] = this; @@ -406,7 +406,7 @@ namespace mongo { } void V8Scope::unregisterOperation() { - boost::lock_guard<boost::mutex> giLock(_engine->_globalInterruptLock); + stdx::lock_guard<stdx::mutex> giLock(_engine->_globalInterruptLock); LOG(2) << "V8Scope " << static_cast<const void*>(this) << " unregistered for op " << _opId << endl; if (_opId != 0) { // scope is currently associated with an operation id @@ -419,7 +419,7 @@ namespace mongo { bool V8Scope::nativePrologue() { v8::Locker l(_isolate); - boost::lock_guard<boost::mutex> cbEnterLock(_interruptLock); + stdx::lock_guard<stdx::mutex> cbEnterLock(_interruptLock); if (v8::V8::IsExecutionTerminating(_isolate)) { LOG(2) << "v8 execution interrupted. isolate: " << static_cast<const void*>(_isolate) << endl; return false; @@ -436,7 +436,7 @@ namespace mongo { bool V8Scope::nativeEpilogue() { v8::Locker l(_isolate); - boost::lock_guard<boost::mutex> cbLeaveLock(_interruptLock); + stdx::lock_guard<stdx::mutex> cbLeaveLock(_interruptLock); _inNativeExecution = false; if (v8::V8::IsExecutionTerminating(_isolate)) { LOG(2) << "v8 execution interrupted. isolate: " << static_cast<const void*>(_isolate) << endl; @@ -451,7 +451,7 @@ namespace mongo { } void V8Scope::kill() { - boost::lock_guard<boost::mutex> interruptLock(_interruptLock); + stdx::lock_guard<stdx::mutex> interruptLock(_interruptLock); if (!_inNativeExecution) { // Set the TERMINATE flag on the stack guard for this isolate. // This won't happen between calls to nativePrologue and nativeEpilogue(). |