PatchworkOS  da8a090
A non-POSIX operating system.
Loading...
Searching...
No Matches
wait_client_t Struct Reference

Represents a thread in the waiting subsystem. More...

#include <wait.h>

Collaboration diagram for wait_client_t:

Data Fields

list_entry_t entry
 
list_t entries
 List of wait entries, one for each wait queue the thread is waiting on.
 
errno_t err
 Error number set when unblocking the thread, EOK for no error.
 
clock_t deadline
 Deadline for timeout, CLOCKS_NEVER for no timeout.
 
wait_towner
 The wait cpu context of the cpu the thread is blocked on.
 

Detailed Description

Represents a thread in the waiting subsystem.

Each thread stores all wait queues it is currently waiting on in here to allow blocking on multiple wait queues, since if one queue unblocks the thread must be removed from all other queues as well.

Definition at line 194 of file wait.h.

Field Documentation

◆ entry

list_entry_t wait_client_t::entry

Definition at line 196 of file wait.h.

◆ entries

list_t wait_client_t::entries

List of wait entries, one for each wait queue the thread is waiting on.

Definition at line 197 of file wait.h.

◆ err

errno_t wait_client_t::err

Error number set when unblocking the thread, EOK for no error.

Definition at line 198 of file wait.h.

◆ deadline

clock_t wait_client_t::deadline

Deadline for timeout, CLOCKS_NEVER for no timeout.

Definition at line 199 of file wait.h.

◆ owner

wait_t* wait_client_t::owner

The wait cpu context of the cpu the thread is blocked on.

Definition at line 200 of file wait.h.


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