MCPcopy Create free account
hub / github.com/dborth/vbagx / ProgressThread

Function ProgressThread

source/menu.cpp:518–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518static void * ProgressThread (void *arg)
519{
520 LWP_MutexLock(progMutex);
521 while(1)
522 {
523 // sleep until ShowProgress/ShowAction signals there is work to do
524 while(!showProgress)
525 LWP_CondWait(progActiveCond, progMutex);
526 progIdle = false;
527 LWP_MutexUnlock(progMutex);
528
529 ProgressWindow(progressTitle, progressMsg);
530
531 LWP_MutexLock(progMutex);
532 progIdle = true;
533 LWP_CondBroadcast(progIdleCond); // wake CancelAction callers
534 }
535 return NULL;
536}
537
538/****************************************************************************
539 * InitGUIThread

Callers

nothing calls this directly

Calls 1

ProgressWindowFunction · 0.85

Tested by

no test coverage detected