MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / StepThread

Method StepThread

src/hx/Debugger.cpp:536–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534 }
535
536 static void StepThread(int threadNumber, StepType stepType, int stepCount)
537 {
538 // Continue the thread, but set its step first
539 gStepThread = threadNumber;
540 gStepType = stepType;
541 gStepCount = stepCount;
542
543 gMutex.lock();
544
545 std::list<DebuggerContext *>::iterator iter = gList.begin();
546 while (iter != gList.end()) {
547 DebuggerContext *stack = *iter++;
548 if (stack->mThreadNumber == threadNumber) {
549 gStepLevel = stack->mStackContext->mDebugger->mStepLevel;
550 stack->Continue(1);
551 break;
552 }
553 }
554 gMutex.unlock();
555
556 }
557
558 // Note that HandleBreakpoints is called immediately after a read memory
559 // barrier by the HX_STACK_LINE macro

Callers

nothing calls this directly

Calls 1

ContinueMethod · 0.80

Tested by

no test coverage detected