From a32cfd247b7cf192374b11ae6a14bb0ef543988f Mon Sep 17 00:00:00 2001 From: gaschler Date: Fri, 27 Apr 2018 20:41:13 +0200 Subject: [PATCH] Pessimist ~Locker (#1125) FIXES=#1124 --- cartographer/common/mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cartographer/common/mutex.h b/cartographer/common/mutex.h index 32e8eea..e5a9bc6 100644 --- a/cartographer/common/mutex.h +++ b/cartographer/common/mutex.h @@ -67,8 +67,8 @@ class CAPABILITY("mutex") Mutex { Locker(Mutex* mutex) ACQUIRE(mutex) : mutex_(mutex), lock_(mutex->mutex_) {} ~Locker() RELEASE() { - lock_.unlock(); mutex_->condition_.notify_all(); + lock_.unlock(); } template