|
PatchworkOS
|
Per-CPU wait context. More...
#include <wait.h>
Data Fields | |
| list_t | blockedThreads |
| List of blocked threads, sorted by deadline. | |
| cpu_t * | cpu |
| The CPU this context belongs to. | |
| lock_t | lock |
Per-CPU wait context.
Each cpu stores all threads that were blocked on it, sorted by deadline, to handle timeouts.
| list_t wait_cpu_ctx_t::blockedThreads |
List of blocked threads, sorted by deadline.
Definition at line 194 of file wait.h.
Referenced by wait_block_finalize(), wait_cpu_ctx_init(), wait_timer_handler(), and wait_unblock_thread().
| cpu_t* wait_cpu_ctx_t::cpu |
The CPU this context belongs to.
Definition at line 195 of file wait.h.
Referenced by wait_cpu_ctx_init(), wait_timer_handler(), and wait_unblock_thread().
| lock_t wait_cpu_ctx_t::lock |
Definition at line 196 of file wait.h.
Referenced by wait_block_finalize(), wait_cpu_ctx_init(), wait_timer_handler(), and wait_unblock_thread().