void SDLUtilityTool::WaitThread(SDL_Thread* thread, int* returnValue) { g_assert(thread != nullptr); g_assert(returnValue != nullptr); m_threadMap.erase(SDL_GetThreadName(thread)); LogSDLError(); SDL_WaitThread(thread, returnValue); LogSDLError(); m_sdlThreads--; m_totalResources--; }
const char * fe_mt_thread_get_name(fe_mt_thread t) { return SDL_GetThreadName(pool.slots[t].thread); }