diff --git a/dtool/src/dtoolbase/mutexPosixImpl.I b/dtool/src/dtoolbase/mutexPosixImpl.I index e35402a2c3..479519a3c9 100644 --- a/dtool/src/dtoolbase/mutexPosixImpl.I +++ b/dtool/src/dtoolbase/mutexPosixImpl.I @@ -23,7 +23,7 @@ MutexPosixImpl() { TAU_PROFILE("MutexPosixImpl::MutexPosixImpl", " ", TAU_USER); pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL); + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT); int result = pthread_mutex_init(&_lock, &attr); pthread_mutexattr_destroy(&attr); assert(result == 0); diff --git a/panda/src/pipeline/Sources.pp b/panda/src/pipeline/Sources.pp index 5f96dc3442..d694236605 100644 --- a/panda/src/pipeline/Sources.pp +++ b/panda/src/pipeline/Sources.pp @@ -85,7 +85,9 @@ conditionVarSimpleImpl.cxx \ conditionVarSpinlockImpl.cxx \ config_pipeline.cxx \ - contextSwitch_longjmp_src.c contextSwitch_ucontext_src.c \ + contextSwitch_longjmp_src.c \ + contextSwitch_posix_src.c \ + contextSwitch_ucontext_src.c \ contextSwitch_windows_src.c \ cycleData.cxx \ cycleDataLockedReader.cxx \ diff --git a/panda/src/pipeline/contextSwitch_posix_src.c b/panda/src/pipeline/contextSwitch_posix_src.c index a2b178a5a6..92087a3a85 100644 --- a/panda/src/pipeline/contextSwitch_posix_src.c +++ b/panda/src/pipeline/contextSwitch_posix_src.c @@ -160,7 +160,7 @@ alloc_thread_context() { pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); - pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL); + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT); int result = pthread_mutex_init(&context->_ready_mutex, &attr); pthread_mutexattr_destroy(&attr);