]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
*** empty log message ***
[wxWidgets.git] / src / unix / threadpsx.cpp
index 75b3bff75778af1046ad249e378c425ca393443a..eee36b4d3a2394b2771f42cda61564171567ae8c 100644 (file)
@@ -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;
 }