aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_utils_unix.h
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2016-08-04 21:34:08 +0300
committerAlex Chronopoulos <[email protected]>2016-08-04 21:34:08 +0300
commitb64e94cf7af223c3f60a7c546e4970eb886d35ef (patch)
tree6a0fff5e9d9168b751a3a2fc7ea0ea1733a3b3e7 /src/cubeb_utils_unix.h
parent50b92089d92ca9e5d1bc222849d199cc0686867b (diff)
downloadcubeb-b64e94cf7af223c3f60a7c546e4970eb886d35ef.tar.gz
cubeb-b64e94cf7af223c3f60a7c546e4970eb886d35ef.zip
Restore non-recursive behavior of mutex wrapper
Diffstat (limited to 'src/cubeb_utils_unix.h')
-rw-r--r--src/cubeb_utils_unix.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cubeb_utils_unix.h b/src/cubeb_utils_unix.h
index 643306e..72041f5 100644
--- a/src/cubeb_utils_unix.h
+++ b/src/cubeb_utils_unix.h
@@ -20,7 +20,11 @@ public:
{
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
- pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+#ifdef DEBUG
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
+#else
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
+#endif
#ifdef DEBUG
int r =