aboutsummaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2017-11-12 21:11:27 +0100
committerTor Egge <Tor.Egge@broadpark.no>2017-11-13 11:27:39 +0100
commit59f5ccf748a6e2d6f8e4b7565f106594e1d057f3 (patch)
treee854205e3ca4e990c348e76a7ce7f536f1d82802 /staging_vespalib
parentb0e46e757b0fa7760b20d68bb22f6f8933882301 (diff)
Use std::lock_guard instead of std::unique_lock.
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/clock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/clock.cpp b/staging_vespalib/src/vespa/vespalib/util/clock.cpp
index b19b067afa9..c9768417914 100644
--- a/staging_vespalib/src/vespa/vespalib/util/clock.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/clock.cpp
@@ -45,7 +45,7 @@ void Clock::Run(FastOS_ThreadInterface *thread, void *arguments)
void
Clock::stop(void)
{
- std::unique_lock<std::mutex> guard(_lock);
+ std::lock_guard<std::mutex> guard(_lock);
_stop = true;
_cond.notify_all();
}