Browse Source

Make SdlThread constructor explicit

pull/2597/head
Vladimir Olteanu 5 years ago committed by Anders Jenbo
parent
commit
3638a20c76
  1. 2
      Source/dthread.cpp
  2. 2
      Source/nthread.cpp
  3. 2
      Source/utils/sdl_thread.h

2
Source/dthread.cpp

@ -86,7 +86,7 @@ void dthread_start()
DthreadRunning = true;
DthreadMutex.emplace();
WorkToDo.emplace();
Thread = { DthreadHandler };
Thread = SdlThread { DthreadHandler };
}
void DThreadCleanup()

2
Source/nthread.cpp

@ -181,7 +181,7 @@ void nthread_start(bool setTurnUpperBit)
sgbThreadIsRunning = false;
MemCrit.lock();
nthread_should_run = true;
Thread = { NthreadHandler };
Thread = SdlThread { NthreadHandler };
}
}

2
Source/utils/sdl_thread.h

@ -34,7 +34,7 @@ public:
ErrSdl();
}
SdlThread(void (*handler)(void))
explicit SdlThread(void (*handler)(void))
: SdlThread(ThreadTranslate, (void *)handler)
{
}

Loading…
Cancel
Save