| 156 | |
| 157 | |
| 158 | void 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 | |
| 177 | void Scheduler::RegisterRun( |