MCPcopy Create free account
hub / github.com/RichieSams/FiberTaskingLib / GetCurrentThread

Function GetCurrentThread

source/thread_abstraction.cpp:112–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112ThreadType GetCurrentThread() {
113 return { ::GetCurrentThread(), ::GetCurrentThreadId() };
114}
115
116bool SetCurrentThreadAffinity(size_t coreAffinity) {
117 DWORD_PTR ret = ::SetThreadAffinityMask(::GetCurrentThread(), 1ULL << coreAffinity);

Callers 2

InitMethod · 0.85
SetCurrentThreadAffinityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected