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

Method ThreadRestorePause

IDEHelper/WinDebugger.cpp:603–619  ·  view source on GitHub ↗

Leave active thread unpaused

Source from the content-addressed store, hash-verified

601
602// Leave active thread unpaused
603void WinDebugger::ThreadRestorePause(WdThreadInfo* onlyPauseThread, WdThreadInfo* dontPauseThread)
604{
605 BfLogDbg("ThreadRestorePause %d %d\n", (onlyPauseThread != NULL) ? onlyPauseThread->mThreadId : 0, (dontPauseThread != NULL) ? dontPauseThread->mThreadId : 0);
606 for (auto threadInfo : mThreadList)
607 {
608 if (((threadInfo != dontPauseThread) && (!threadInfo->mIsBreakRestorePaused)) &&
609 ((onlyPauseThread == NULL) || (threadInfo == onlyPauseThread)))
610 {
611 BF_ASSERT(!threadInfo->mIsBreakRestorePaused);
612
613 BfLogDbg("SuspendThread %d\n", threadInfo->mThreadId);
614 ::SuspendThread(threadInfo->mHThread);
615
616 threadInfo->mIsBreakRestorePaused = true;
617 }
618 }
619}
620
621void WinDebugger::ThreadRestoreUnpause()
622{

Callers 1

ScanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected