Skip to content

Thread queue

include/thread/queue.h View source View on GitHub
struct thread_queue (2 fields) source
§ struct list_head list
§ struct spinlock lock
void thread_queue_init(struct thread_queue *q)
source
void thread_queue_push_back(struct thread_queue *q, struct thread *t)
source
struct thread * thread_queue_pop_front(struct thread_queue *q)
source
void thread_queue_clear(struct thread_queue *q)
source
bool thread_queue_remove(struct thread_queue *q, struct thread *t)
source