MCPcopy Create free account
hub / github.com/beefytech/Beef / ResumeThreads

Method ResumeThreads

BeefRT/dbg/gc.cpp:2492–2507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2490}
2491
2492void 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
2509void BFGC::PerformCollection()
2510{

Callers

nothing calls this directly

Calls 3

WantsSuspendMethod · 0.80
BfpThread_ResumeFunction · 0.50
UnlockMethod · 0.45

Tested by

no test coverage detected