| 516 | } |
| 517 | |
| 518 | static 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 |
nothing calls this directly
no test coverage detected