]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fixes for Unix - IT DOES NOT WORK YET, DON'T TRY IT
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Nov 1999 23:24:12 +0000 (23:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Nov 1999 23:24:12 +0000 (23:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/threadpsx.cpp

index 0b33684eaefc8a637212f13481e2bed33a072bb7..a54694647ccf92fd869abe677b123438d33295f0 100644 (file)
@@ -508,12 +508,14 @@ void wxThread::Sleep(unsigned long milliseconds)
 // creating thread
 // -----------------------------------------------------------------------------
 
-wxThread::wxThread()
+wxThread::wxThread(wxThreadKind kind)
 {
     // add this thread to the global list of all threads
     gs_allThreads.Add(this);
 
     p_internal = new wxThreadInternal();
+
+    m_isDetached = kind == wxTHREAD_DETACHED;
 }
 
 wxThreadError wxThread::Create()
@@ -636,7 +638,7 @@ unsigned int wxThread::GetPriority() const
     return p_internal->GetPriority();
 }
 
-unsigned long wxThread::GetID() const
+unsigned long wxThread::GetId() const
 {
     return (unsigned long)p_internal->GetId();
 }
@@ -722,10 +724,8 @@ wxThreadError wxThread::Delete(ExitCode *rc)
             // wait until the thread stops
             p_internal->Wait();
     }
-    //GL: As we must auto-destroy, the destruction must happen here.
-    delete this;
 
-    return NULL;
+    return wxTHREAD_NO_ERROR;
 }
 
 wxThreadError wxThread::Kill()