Use Sleep(0) instead. Sleep(0) is not guaranteed to yield, which is a problem, but Sleep(1) can easily take up to 16 ms, which is really unacceptable except in very low-priority thread. But really, you shouldn't be relying on force_yield() for anything except with the SIMPLE_THREADS model. There is also SwitchToThread(), but in fact it is even weaker than Sleep(0). |
||
|---|---|---|
| .. | ||
| metalibs | ||
| src | ||
| CMakeLists.txt | ||