Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
Arquivo: maingl.cpp Projeto: cxd4/z64
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;
}