diff options
Diffstat (limited to 'lib/System/Mutex.cpp')
-rw-r--r-- | lib/System/Mutex.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/System/Mutex.cpp b/lib/System/Mutex.cpp index 3bef7ce0b0..81dcd3b418 100644 --- a/lib/System/Mutex.cpp +++ b/lib/System/Mutex.cpp @@ -98,7 +98,7 @@ Mutex::~Mutex() { if (pthread_enabled) { - pthread_mutex_t* mutex = reinterpret_cast<pthread_mutex_t*>(data_); + pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); assert(mutex != 0); pthread_mutex_destroy(mutex); assert(mutex != 0); @@ -110,7 +110,7 @@ Mutex::acquire() { if (pthread_enabled) { - pthread_mutex_t* mutex = reinterpret_cast<pthread_mutex_t*>(data_); + pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); assert(mutex != 0); int errorcode = pthread_mutex_lock(mutex); @@ -124,7 +124,7 @@ Mutex::release() { if (pthread_enabled) { - pthread_mutex_t* mutex = reinterpret_cast<pthread_mutex_t*>(data_); + pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); assert(mutex != 0); int errorcode = pthread_mutex_unlock(mutex); @@ -138,7 +138,7 @@ Mutex::tryacquire() { if (pthread_enabled) { - pthread_mutex_t* mutex = reinterpret_cast<pthread_mutex_t*>(data_); + pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(data_); assert(mutex != 0); int errorcode = pthread_mutex_trylock(mutex); |