| 52 | } |
| 53 | |
| 54 | static 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 | |
| 65 | static inline void push_thread(struct list_node *head, struct thread *t) |
| 66 | { |
no test coverage detected