| 791 | } |
| 792 | |
| 793 | int32 GameCookerImpl::ThreadFunction() |
| 794 | { |
| 795 | IsThreadRunning = true; |
| 796 | |
| 797 | CriticalSection mutex; |
| 798 | while (Platform::AtomicRead(&CancelThreadFlag) == 0) |
| 799 | { |
| 800 | if (IsRunning) |
| 801 | { |
| 802 | Build(); |
| 803 | } |
| 804 | |
| 805 | ThreadCond.Wait(mutex); |
| 806 | } |
| 807 | |
| 808 | IsThreadRunning = false; |
| 809 | return 0; |
| 810 | } |
| 811 | |
| 812 | bool GameCookerService::Init() |
| 813 | { |
nothing calls this directly
no test coverage detected