X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f439844be27aa4ec09dd1d3365ce44653291c2af..849949b13fa19002da52333e760ebfecd00c60d9:/src/unix/threadpsx.cpp diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index 75b3bff757..eee36b4d3a 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -100,12 +100,18 @@ public: wxMutex::wxMutex() { + p_internal = new wxMutexInternal; + +#if 0 + /* I don't know where this function is supposed to exist, + and NP actually means non-portable, RR. */ pthread_mutexattr_t attr_type; - pthread_mutexattr_settype( &attr_type, PTHREAD_MUTEX_FAST_NP ); - p_internal = new wxMutexInternal; pthread_mutex_init( &(p_internal->p_mutex), (const pthread_mutexattr_t*) &attr_type ); +#else + pthread_mutex_init( &(p_internal->p_mutex), (const pthread_mutexattr_t*) NULL ); +#endif m_locked = 0; }