| 343 | } |
| 344 | |
| 345 | int thread_yield_microseconds(unsigned int microsecs) |
| 346 | { |
| 347 | struct thread *current; |
| 348 | struct timeout_callback tocb; |
| 349 | |
| 350 | current = current_thread(); |
| 351 | |
| 352 | if (!thread_can_yield(current)) |
| 353 | return -1; |
| 354 | |
| 355 | if (thread_yield_timed_callback(&tocb, microsecs)) |
| 356 | return -1; |
| 357 | |
| 358 | return 0; |
| 359 | } |
| 360 | |
| 361 | int thread_check_stacks(void) |
| 362 | { |
no test coverage detected