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

Function current_thread

src/lib/thread.c:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static inline struct thread *current_thread(void)
47{
48 if (!initialized || !boot_cpu())
49 return NULL;
50
51 return active_thread;
52}
53
54static inline struct thread *pop_thread(struct list_node *head)
55{

Callers 10

scheduleFunction · 0.85
call_wrapperFunction · 0.85
call_wrapper_block_stateFunction · 0.85
thread_runFunction · 0.85
thread_run_untilFunction · 0.85
thread_coop_enableFunction · 0.85
thread_coop_disableFunction · 0.85
thread_joinFunction · 0.85

Calls 1

boot_cpuFunction · 0.50

Tested by

no test coverage detected