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--;
		}
示例#2
0
文件: mt.c 项目: yoanlcq/FATE
const char *  fe_mt_thread_get_name(fe_mt_thread t) {
    return SDL_GetThreadName(pool.slots[t].thread);
}