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

Function pop_thread

src/lib/thread.c:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static inline struct thread *pop_thread(struct list_node *head)
55{
56 struct list_node *node;
57
58 node = list_pop(head);
59 if (node == NULL)
60 return NULL;
61
62 return container_of(node, struct thread, list_node);
63}
64
65static inline void push_thread(struct list_node *head, struct thread *t)
66{

Callers 2

pop_runnableFunction · 0.85
get_free_threadFunction · 0.85

Calls 1

list_popFunction · 0.85

Tested by

no test coverage detected