MCPcopy Create free account
hub / github.com/dds-bridge/dds / RegisterThreads

Method RegisterThreads

library/src/system/scheduler.cpp:158–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157
158void Scheduler::RegisterThreads(
159 const int n)
160{
161 if (n == numThreads)
162 return;
163 numThreads = n;
164
165 const unsigned nu = static_cast<unsigned>(n);
166 threadGroup.resize(nu);
167 threadCurrGroup.resize(nu);
168 threadToHand.resize(nu);
169
170#ifdef DDS_SCHEDULER
171 timeThread.Init("Threads", numThreads);
172 timersThread.resize(numThreads);
173#endif
174}
175
176
177void Scheduler::RegisterRun(

Callers 1

SetResourcesFunction · 0.80

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected