]> git.sesse.net Git - cubemap/commitdiff
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 dbd5ae5e06f3fa2d7588f13113a0d4bfd825a145..a1dcc6a6a62594cf261a80299dcbeba60f0bb6cd 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);
 }