]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/thread.h
Assimilate exceptions and RefPtr from mspmisc
[libs/core.git] / source / core / thread.h
index 937d161938b20aad593653bbe99ed882aeb77156..60a2e83e7154096524c2583e7eccfe57f8cc5c30 100644 (file)
@@ -1,10 +1,11 @@
-/*
+/* $Id$
+
 This file is part of libmspcore
 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
-#ifndef MSP_FRAMEWORK_THREAD_H_
-#define MSP_FRAMEWORK_THREAD_H_
+#ifndef MSP_CORE_THREAD_H_
+#define MSP_CORE_THREAD_H_
 
 #include "types.h"
 
@@ -36,13 +37,13 @@ private:
        Thread(const Thread &);
        Thread &operator=(const Thread &);
 
+       static
 #ifdef WIN32
-#      define THREAD_RETURN_ DWORD WINAPI
+       DWORD WINAPI
 #else
-#      define THREAD_RETURN_ void *
+       void *
 #endif
-       static THREAD_RETURN_ main_(void *t) { ((Thread *)t)->main(); return 0; }
-#undef THREAD_RETURN_
+       main_(void *t) { ((Thread *)t)->main(); return 0; }
 };
 
 } // namespace Msp