From 73a042328a539b51b3bf35efc16ec3245381dc40 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Mon, 9 May 2016 10:31:40 -0400 Subject: 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. --- src/mongo/scripting/mozjs/PosixNSPR.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/scripting') 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 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; -- cgit v1.2.1