]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
Split some of the recent code out to make it more reusable.
[wxWidgets.git] / src / msw / thread.cpp
index 6a8e87350c2624ba938c79b26dd73aa6a2e3b331..0a1d611ca4c8ecc48d0ba8e3b17afc0888fa180f 100644 (file)
@@ -893,7 +893,10 @@ unsigned long wxThread::GetCurrentId()
 
 bool wxThread::SetConcurrency(size_t level)
 {
 
 bool wxThread::SetConcurrency(size_t level)
 {
-#ifndef __WXWINCE__
+#ifdef __WXWINCE__
+    wxUnusedVar(level);
+    return false;
+#else
     wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );
 
     // ok only for the default one
     wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );
 
     // ok only for the default one
@@ -983,9 +986,9 @@ bool wxThread::SetConcurrency(size_t level)
 
         return false;
     }
 
         return false;
     }
-#endif // !__WXWINCE__
 
     return true;
 
     return true;
+#endif // __WXWINCE__/!__WXWINCE__
 }
 
 // ctor and dtor
 }
 
 // ctor and dtor