Преглед изворни кода

Fehler in threads bei linux systemen behoben

Kolja Strohm пре 5 година
родитељ
комит
049e269d67
1 измењених фајлова са 1 додато и 1 уклоњено
  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