| 405 | } |
| 406 | |
| 407 | void thread_yield() |
| 408 | { |
| 409 | #if defined(CONF_FAMILY_UNIX) |
| 410 | sched_yield(); |
| 411 | #elif defined(CONF_FAMILY_WINDOWS) |
| 412 | Sleep(0); |
| 413 | #else |
| 414 | #error not implemented |
| 415 | #endif |
| 416 | } |
| 417 | |
| 418 | void thread_sleep(int milliseconds) |
| 419 | { |
nothing calls this directly
no outgoing calls
no test coverage detected