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

Function thread_can_yield

src/lib/thread.c:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static struct thread *active_thread;
34
35static inline int thread_can_yield(const struct thread *t)
36{
37 return (t != NULL && t->can_yield > 0);
38}
39
40static inline void set_current_thread(struct thread *t)
41{

Callers 3

thread_runFunction · 0.85
thread_run_untilFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected