Bug 1290625 - Make libcubeb mutex recurse again, to avoid deadlock when getting microphone. r=achronop

MozReview-Commit-ID: AvYa8ylsdOf

--HG--
extra : rebase_source : 111b2954a089fcacc530f7d9babed5de298b5b78
This commit is contained in:
Jan-Ivar Bruaroey 2016-07-29 20:03:35 -04:00
parent 3345af4b54
commit 23c8aa8b52

View File

@ -20,11 +20,7 @@ public:
{
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
#ifdef DEBUG
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
#else
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
#endif
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
#ifdef DEBUG
int r =