Explorar o código

Fehler in threads bei linux systemen behoben

Kolja Strohm %!s(int64=5) %!d(string=hai) anos
pai
achega
049e269d67
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Thread.cpp

+ 1 - 1
Thread.cpp

@@ -38,9 +38,9 @@ void Thread::start() // startet den Thread
 {
     if( !run )
     {
+        ref++;
 #ifdef WIN32
         threadHandle = CreateThread( 0, 0, threadStart, this, 0, &threadId );
-        ref++;
 #else
         pthread_create( &threadHandle, NULL, threadStart, this );
 #endif