PatchworkOS
Loading...
Searching...
No Matches
wait_cpu_ctx_t Struct Reference

Per-CPU wait context. More...

#include <wait.h>

Data Fields

list_t blockedThreads
 List of blocked threads, sorted by deadline.
 
cpu_tcpu
 The CPU this context belongs to.
 
lock_t lock
 

Detailed Description

Per-CPU wait context.

Each cpu stores all threads that were blocked on it, sorted by deadline, to handle timeouts.

Definition at line 192 of file wait.h.

Field Documentation

◆ blockedThreads

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

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

lock_t wait_cpu_ctx_t::lock

The documentation for this struct was generated from the following file: