Thread queue
include/thread/queue.h View source View on GitHubStructs
Section titled “Structs”thread_queue
Section titled “thread_queue”struct thread_queue {
struct list_head list;
struct spinlock lock;
}; Functions
Section titled “Functions”thread_queue_init
Section titled “thread_queue_init”void thread_queue_init(struct thread_queue *q); thread_queue_push_back
Section titled “thread_queue_push_back”void thread_queue_push_back(struct thread_queue *q, struct thread *t); thread_queue_pop_front
Section titled “thread_queue_pop_front”struct thread * thread_queue_pop_front(struct thread_queue *q); thread_queue_clear
Section titled “thread_queue_clear”void thread_queue_clear(struct thread_queue *q); thread_queue_remove
Section titled “thread_queue_remove”bool thread_queue_remove(struct thread_queue *q, struct thread *t);