ecere/ecereCOM: Moved GetCurrentThreadID() from Thread.ec to Mutex.ec to solve ecereC...
authorJerome St-Louis <jerome@ecere.com>
Mon, 13 Aug 2012 04:30:18 +0000 (00:30 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 13 Aug 2012 04:30:18 +0000 (00:30 -0400)
ecere/src/sys/Mutex.ec
ecere/src/sys/Thread.ec

index f0a3d05..21cd192 100644 (file)
@@ -12,9 +12,15 @@ namespace sys;
 
 import "instance"
 
-#ifdef _DEBUG
-int GetCurrentThreadID();
+// Moved this here from Thread.ec to make compiling ecereCOM in Debug easier
+public int GetCurrentThreadID()
+{
+#if defined(__WIN32__)
+   return (int)GetCurrentThreadId();
+#else
+   return pthread_self();
 #endif
+}
 
 public class Mutex : struct
 {
index 207b84d..09ed90a 100644 (file)
@@ -28,15 +28,6 @@ public enum ThreadPriority
    timeCritical = 15
 };
 
-public int GetCurrentThreadID()
-{
-#if defined(__WIN32__)
-   return (int)GetCurrentThreadId();
-#else
-   return pthread_self();
-#endif
-}
-
 public class Thread
 {
    ~Thread()