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

Method ManualThreadInit

BeefRT/rt/Thread.h:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 virtual void ManualThreadInit(bf::System::Threading::Thread* thread)
144 {
145 bf::System::Threading::Thread* newThread = thread;
146
147 mIsManualInit = true;
148 mStarted = true;
149 mStartedEvent.Set(true);
150 mThread = newThread;
151 newThread->SetInternalThread(this);
152 mThreadId = BfpThread_GetCurrentId();
153 mThreadHandle = BfpThread_GetCurrent();
154 mStackStart = ((intptr)&newThread + 0xFFF) & ~(intptr)0xFFF;
155 ThreadStarted();
156 }
157
158 virtual void ThreadStarted()
159 {

Callers

nothing calls this directly

Calls 3

SetInternalThreadMethod · 0.80
BfpThread_GetCurrentIdFunction · 0.50
SetMethod · 0.45

Tested by

no test coverage detected