summaryrefslogtreecommitdiff
path: root/src/mongo/executor/network_interface_mock.h
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@mongodb.com>2019-09-18 22:20:51 +0000
committerevergreen <evergreen@mongodb.com>2019-09-18 22:20:51 +0000
commit7eda962b63ab11427889b13dc3fbbe6df0fd02fb (patch)
tree34980e52447d0f667334430fe0ca126380ba0ffa /src/mongo/executor/network_interface_mock.h
parentbc11369435ca51e2ff6897433d00f6b909f6a25f (diff)
downloadmongo-7eda962b63ab11427889b13dc3fbbe6df0fd02fb.tar.gz
SERVER-43370 NetworkInterfaceMock should use stdx::mutex
Diffstat (limited to 'src/mongo/executor/network_interface_mock.h')
-rw-r--r--src/mongo/executor/network_interface_mock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/executor/network_interface_mock.h b/src/mongo/executor/network_interface_mock.h
index 8a5d69b5ad9..af1af78bf5b 100644
--- a/src/mongo/executor/network_interface_mock.h
+++ b/src/mongo/executor/network_interface_mock.h
@@ -324,7 +324,7 @@ private:
/**
* Implementation of waitForWork*.
*/
- void _waitForWork_inlock(stdx::unique_lock<Latch>* lk);
+ void _waitForWork_inlock(stdx::unique_lock<stdx::mutex>* lk);
/**
* Returns true if there are ready requests for the network thread to service.
@@ -356,12 +356,12 @@ private:
* reaquire "lk" several times, but will not return until the executor has blocked
* in waitFor*.
*/
- void _runReadyNetworkOperations_inlock(stdx::unique_lock<Latch>* lk);
+ void _runReadyNetworkOperations_inlock(stdx::unique_lock<stdx::mutex>* lk);
// Mutex that synchronizes access to mutable data in this class and its subclasses.
// Fields guarded by the mutex are labled (M), below, and those that are read-only
// in multi-threaded execution, and so unsynchronized, are labeled (R).
- Mutex _mutex = MONGO_MAKE_LATCH("NetworkInterfaceMock::_mutex");
+ stdx::mutex _mutex; // NOLINT
// Condition signaled to indicate that the network processing thread should wake up.
stdx::condition_variable _shouldWakeNetworkCondition; // (M)