]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/thread.cpp
rebaked after timer/socket changes
[wxWidgets.git] / src / mac / carbon / thread.cpp
index cacf2e5e35a0d7fe168da6e4f49c278319ed1cbd..4c8d54b0b0f64eede7844e35953552ae6179415b 100644 (file)
@@ -36,9 +36,6 @@
 #include "wx/mac/uma.h"
 #endif
 
-#include "wx/mac/macnotfy.h"
-
-
 // the possible states of the thread:
 // ("=>" shows all possible transitions from this state)
 enum wxThreadState
@@ -136,15 +133,9 @@ void wxCriticalSection::Leave()
 // wxMutex implementation
 // ----------------------------------------------------------------------------
 
-#if TARGET_API_MAC_OSX
 #define wxUSE_MAC_SEMAPHORE_MUTEX 0
 #define wxUSE_MAC_CRITICAL_REGION_MUTEX 1
 #define wxUSE_MAC_PTHREADS_MUTEX 0
-#else
-#define wxUSE_MAC_SEMAPHORE_MUTEX 0
-#define wxUSE_MAC_CRITICAL_REGION_MUTEX 1
-#define wxUSE_MAC_PTHREADS_MUTEX 0
-#endif
 
 #if wxUSE_MAC_PTHREADS_MUTEX
 
@@ -430,7 +421,7 @@ private:
     bool m_isOk ;
 };
 
-wxMutexInternal::wxMutexInternal( wxMutexType mutexType )
+wxMutexInternal::wxMutexInternal( wxMutexType WXUNUSED(mutexType) )
 {
     m_isOk = false;
     m_critRegion = kInvalidID;
@@ -1255,9 +1246,7 @@ bool wxThread::IsMain()
 
 void wxThread::Yield()
 {
-#if TARGET_API_MAC_OSX
     CFRunLoopRunInMode( kCFRunLoopDefaultMode , 0 , true ) ;
-#endif
 
     MPYield();
 }
@@ -1278,7 +1267,7 @@ unsigned long wxThread::GetCurrentId()
     return (unsigned long)MPCurrentTaskID();
 }
 
-bool wxThread::SetConcurrency( size_t level )
+bool wxThread::SetConcurrency( size_t WXUNUSED(level) )
 {
     // Cannot be set in MacOS.
     return false;