MOS Source Code
Loading...
Searching...
No Matches
thread_t Struct Reference

#include <task_types.h>

+ Collaboration diagram for thread_t:

Public Attributes

u32 magic
 
tid_t tid
 
const char * name
 
process_towner
 
 as_linked_list
 node in the process's thread list
 
thread_mode mode
 user-mode thread or kernel-mode
 
spinlock_t state_lock
 protects the thread state
 
thread_state_t state
 thread state
 
downwards_stack_t u_stack
 user-mode stack
 
downwards_stack_t k_stack
 kernel-mode stack
 
platform_thread_options_t platform_options
 platform-specific thread options
 
waitlist_t waiters
 list of threads waiting for this thread to exit
 
thread_signal_info_t signal_info
 

Detailed Description

Definition at line 74 of file task_types.h.

Member Data Documentation

◆ magic

u32 magic

Definition at line 76 of file task_types.h.

Referenced by thread_allocate(), and thread_is_valid().

◆ tid

◆ name

◆ owner

◆ as_linked_list

as_linked_list

node in the process's thread list

Definition at line 80 of file task_types.h.

◆ mode

◆ state_lock

◆ state

◆ u_stack

◆ k_stack

◆ platform_options

◆ waiters

waitlist_t waiters

list of threads waiting for this thread to exit

Definition at line 89 of file task_types.h.

Referenced by thread_allocate(), thread_exit_locked(), and thread_wait_for_tid().

◆ signal_info

thread_signal_info_t signal_info

Definition at line 91 of file task_types.h.

Referenced by process_do_fork(), signal_send_to_thread(), and thread_allocate().


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