summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2016-05-09 10:31:40 -0400
committerAndy Schwerin <schwerin@mongodb.com>2016-05-17 11:11:57 -0400
commit73a042328a539b51b3bf35efc16ec3245381dc40 (patch)
tree650b8de13315f5bdb94626e51c445fed7f41152e /src/mongo/scripting
parent11e82fe19c81bd1a5d350a219c3a000e959b6dd6 (diff)
downloadmongo-73a042328a539b51b3bf35efc16ec3245381dc40.tar.gz
SERVER-24104 Replace direct uses of stdx::chrono::durations with MongoDB duration using decls.
This is a preliminary step for switching from stdx::chrono::duration to mongo::Duration.
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r--src/mongo/scripting/mozjs/PosixNSPR.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/PosixNSPR.cpp b/src/mongo/scripting/mozjs/PosixNSPR.cpp
index b6c36d760d3..9800990ac04 100644
--- a/src/mongo/scripting/mozjs/PosixNSPR.cpp
+++ b/src/mongo/scripting/mozjs/PosixNSPR.cpp
@@ -28,6 +28,7 @@
#include "mongo/stdx/thread.h"
#include "mongo/util/concurrency/thread_name.h"
#include "mongo/util/concurrency/threadlocal.h"
+#include "mongo/util/time_support.h"
class nspr::Thread {
mongo::stdx::thread thread_;
@@ -275,7 +276,7 @@ PRStatus PR_WaitCondVar(PRCondVar* cvar, uint32_t timeout) {
mongo::stdx::unique_lock<mongo::stdx::mutex> lk(cvar->lock()->mutex(),
mongo::stdx::adopt_lock_t());
- cvar->cond().wait_for(lk, mongo::stdx::chrono::microseconds(timeout));
+ cvar->cond().wait_for(lk, mongo::Microseconds(timeout));
lk.release();
return PR_SUCCESS;