MCPcopy Create free account
hub / github.com/GRAnimated/MinecraftLCE / SetProcessor

Method SetProcessor

src/4JLibraries_Source/NX/Thread/C4JThreadImpl.cpp:21–28  ·  view source on GitHub ↗

NON_MATCHING | Score: 10 (lower is better) there's uxtw instead of original sxtw

Source from the content-addressed store, hash-verified

19// NON_MATCHING | Score: 10 (lower is better)
20// there's uxtw instead of original sxtw
21void C4JThreadImpl::SetProcessor(int core) {
22 this->m_processor = core;
23
24 const unsigned int idx = this->m_processor % 3;
25
26 sMask = (idx < 3) ? sCores[idx] : 1;
27 nn::os::SetThreadCoreMask(this->m_thread, idx, sMask);
28}
29
30int C4JThreadImpl::GetProcessor() {
31 return this->m_processor;

Callers 1

ConnectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected