]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
Also merge the m_overflow attribute
[wxWidgets.git] / src / unix / threadpsx.cpp
index 113c85a3b214e2d26e794f6e602ad9662b23c12b..a124ad443b4fba6549d69f83abe9ca7402aebe4f 100644 (file)
@@ -166,6 +166,12 @@ private:
     friend class wxConditionInternal;
 };
 
+#ifdef HAVE_PTHREAD_MUTEXATTR_T
+// on some systems pthread_mutexattr_settype() is not in the headers (but it is
+// in the library, otherwise we wouldn't compile this code at all)
+extern "C" int pthread_mutexattr_settype(pthread_mutexattr_t *, int);
+#endif
+
 wxMutexInternal::wxMutexInternal(wxMutexType mutexType)
 {
     int err;
@@ -1177,6 +1183,8 @@ wxThreadError wxThread::Create(unsigned int WXUNUSED(stackSize))
         return wxTHREAD_NO_RESOURCE;
     }
 
+    m_internal->SetState( STATE_NEW );
+
     return wxTHREAD_NO_ERROR;
 }