Tweak the MutexLock implementation slightly, so as to confuse Coverity less.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 18 Aug 2013 08:55:43 +0000 (10:55 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 18 Aug 2013 08:55:43 +0000 (10:55 +0200)
mutexlock.cpp

index dbd5ae5..a1dcc6a 100644 (file)
@@ -3,11 +3,11 @@
 MutexLock::MutexLock(pthread_mutex_t *mutex)
        : mutex(mutex)
 {
-       pthread_mutex_lock(mutex);
+       pthread_mutex_lock(this->mutex);
 }
 
 MutexLock::~MutexLock()
 {
-       pthread_mutex_unlock(mutex);
+       pthread_mutex_unlock(this->mutex);
 }