MCPcopy Create free account
hub / github.com/coreboot/coreboot / thread_yield_microseconds

Function thread_yield_microseconds

src/lib/thread.c:345–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345int 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
361int thread_check_stacks(void)
362{

Callers 4

udelayFunction · 0.70
thread_yieldFunction · 0.70
udelayFunction · 0.50
udelayFunction · 0.50

Calls 3

current_threadFunction · 0.85
thread_can_yieldFunction · 0.85

Tested by

no test coverage detected