mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 11:00:04 +00:00
23 lines
373 B
C++
23 lines
373 B
C++
#include "utils/sdl_thread.h"
|
|
|
|
namespace devilution {
|
|
|
|
#if !defined(__EMSCRIPTEN__)
|
|
int SDLCALL SdlThread::ThreadTranslate(void *ptr)
|
|
{
|
|
auto handler = (void (*)())ptr;
|
|
|
|
handler();
|
|
|
|
return 0;
|
|
}
|
|
|
|
void SdlThread::ThreadDeleter(SDL_Thread *thread)
|
|
{
|
|
if (thread != nullptr)
|
|
app_fatal("Joinable thread destroyed");
|
|
}
|
|
#endif
|
|
|
|
} // namespace devilution
|