Browse Source

Fehler in threads bei linux systemen behoben

Kolja Strohm 5 years ago
parent
commit
049e269d67
1 changed files with 1 additions and 1 deletions
  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