]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
don't use deprecated IntToString function
[wxWidgets.git] / src / unix / threadpsx.cpp
index b4b91685b9d24b9eb12619421cda46bc92fbbb92..89bc5109f77cd4ec76c5f7b5d22bed64f35fbbb7 100644 (file)
@@ -532,7 +532,7 @@ wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
             return wxSEMA_TIMEOUT;
         }
 
-        if ( m_cond.Wait(remainingTime) != wxCOND_NO_ERROR )
+        if ( m_cond.WaitTimeout(remainingTime) != wxCOND_NO_ERROR )
             return wxSEMA_MISC_ERROR;
     }
 
@@ -988,8 +988,8 @@ int wxThread::GetCPUCount()
         wxString s;
         if ( file.ReadAll(&s) )
         {
-            // (ab)use Replace() to find the number of "processor" strings
-            size_t count = s.Replace(_T("processor"), _T(""));
+            // (ab)use Replace() to find the number of "processor: num" strings
+            size_t count = s.Replace(_T("processor\t:"), _T(""));
             if ( count > 0 )
             {
                 return count;