|
PatchworkOS
da8a090
A non-POSIX operating system.
|
Represents a thread in the waiting subsystem. More...
#include <wait.h>
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_t * | owner |
| The wait cpu context of the cpu the thread is blocked on. | |
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.
| list_entry_t wait_client_t::entry |
| list_t wait_client_t::entries |
| errno_t wait_client_t::err |
| clock_t wait_client_t::deadline |
| wait_t* wait_client_t::owner |