From: José Fonseca Date: Wed, 18 Jan 2012 13:13:37 +0000 (+0000) Subject: Actually set PTHREAD_MUTEX_RECURSIVE attr. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ef49dfa953e85ab2755356e01b904bdcf4f1b526;p=apitrace Actually set PTHREAD_MUTEX_RECURSIVE attr. --- diff --git a/common/os_thread.hpp b/common/os_thread.hpp index b17563f..fe7faaa 100644 --- a/common/os_thread.hpp +++ b/common/os_thread.hpp @@ -58,7 +58,7 @@ namespace os { pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); - pthread_mutex_init(&_native_handle, NULL); + pthread_mutex_init(&_native_handle, &attr); pthread_mutexattr_destroy(&attr); #endif }