diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2017-11-12 21:11:27 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2017-11-13 11:27:39 +0100 |
commit | 59f5ccf748a6e2d6f8e4b7565f106594e1d057f3 (patch) | |
tree | e854205e3ca4e990c348e76a7ce7f536f1d82802 /searchlib/src/tests | |
parent | b0e46e757b0fa7760b20d68bb22f6f8933882301 (diff) |
Use std::lock_guard instead of std::unique_lock.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r-- | searchlib/src/tests/postinglistbm/andstress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/postinglistbm/andstress.cpp b/searchlib/src/tests/postinglistbm/andstress.cpp index 736d53508b4..40f919509e8 100644 --- a/searchlib/src/tests/postinglistbm/andstress.cpp +++ b/searchlib/src/tests/postinglistbm/andstress.cpp @@ -280,7 +280,7 @@ AndStressMaster::Task * AndStressMaster::getTask() { Task *result = NULL; - std::unique_lock<std::mutex> taskGuard(_taskLock); + std::lock_guard<std::mutex> taskGuard(_taskLock); if (_taskIdx < _tasks.size()) { result = &_tasks[_taskIdx]; ++_taskIdx; |