MCPcopy Create free account
hub / github.com/RenderKit/oidn / set

Method set

core/thread.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void ThreadAffinity::set(int threadIndex)
107 {
108 if (threadIndex >= (int)affinities.size())
109 return;
110
111 // Save the current affinity and set the new one
112 const HANDLE thread = GetCurrentThread();
113 if (!pSetThreadGroupAffinity(thread, &affinities[threadIndex], &oldAffinities[threadIndex]))
114 printWarning("SetThreadGroupAffinity failed");
115 }
116
117 void ThreadAffinity::restore(int threadIndex)
118 {

Callers 15

on_scheduler_entryMethod · 0.45
initImageFunction · 0.45
runBenchmarkFunction · 0.45
mainFunction · 0.45
oidnTest.cppFile · 0.45
makeConstImageFunction · 0.45
makeRandomImageFunction · 0.45
sanitizationTestFunction · 0.45
mainFunction · 0.45
srgbForwardFunction · 0.45

Calls 2

printWarningFunction · 0.85
sizeMethod · 0.80

Tested by 5

makeConstImageFunction · 0.36
makeRandomImageFunction · 0.36
sanitizationTestFunction · 0.36