void rglGlutCreateThread(int recreate) { if (!thread) { commandSem = SDL_CreateSemaphore(0); commandCond = SDL_CreateCond(); commandMutex = SDL_CreateMutex(); commandFinishedSem = SDL_CreateSemaphore(0); thread = SDL_CreateThread(rglGlutThread, 0); } else if (recreate) rglGlutPostCommand(rglGlutRecreateWindow); }
EXPORT void CALL ProcessRDPList(void) { #ifdef RGL_USE_GLUT rglGlutPostCommand(glut_rdp_process_list); #else #ifdef THREADED if (rglSettings.threaded) { rdpCreateThread(); rdpPostCommand(); } else #endif { rdp_process_list(); } #endif return; }