| 2490 | } |
| 2491 | |
| 2492 | void BFGC::ResumeThreads() |
| 2493 | { |
| 2494 | BP_ZONE("TriggerCollection - ResumeThreads"); |
| 2495 | auto curThreadId = GetCurrentThreadId(); |
| 2496 | for (auto thread : mThreadList) |
| 2497 | { |
| 2498 | if ((thread->mThreadId != curThreadId) && (thread->mSuspended) && (thread->mRunning) && (thread->WantsSuspend())) |
| 2499 | { |
| 2500 | // Previously locked in SuspendThreads |
| 2501 | thread->mCritSect.Unlock(); |
| 2502 | |
| 2503 | thread->mSuspended = false; |
| 2504 | BfpThread_Resume(thread->mThreadHandle, NULL); |
| 2505 | } |
| 2506 | } |
| 2507 | } |
| 2508 | |
| 2509 | void BFGC::PerformCollection() |
| 2510 | { |
nothing calls this directly
no test coverage detected