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

Method restore

core/thread.cpp:117–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 void ThreadAffinity::restore(int threadIndex)
118 {
119 if (threadIndex >= (int)affinities.size())
120 return;
121
122 // Restore the original affinity
123 const HANDLE thread = GetCurrentThread();
124 if (!pSetThreadGroupAffinity(thread, &oldAffinities[threadIndex], nullptr))
125 printWarning("SetThreadGroupAffinity failed");
126 }
127
128#elif defined(__linux__)
129

Callers 1

on_scheduler_exitMethod · 0.80

Calls 2

printWarningFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected