]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
update install docs for MSW (Borland & Digital Mars)
[wxWidgets.git] / src / unix / threadpsx.cpp
index 113c85a3b214e2d26e794f6e602ad9662b23c12b..1b93fa7f5216f5555574a6fe7bd3f53aac19b664 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_state = STATE_NEW;
+
     return wxTHREAD_NO_ERROR;
 }