|
nckernel
0.1
|
쓰레드를 위한 구조체 정의 More...
#include <thread.h>

Public Types | |
| enum | { CREATED = 0x00, READY = 0x01, DELETED = 0x02, RUNNING = 0x03, SLEEP = 0x04, ZOMBIE = 0x05 } |
Data Fields | |
| void * | arch_data |
| struct thread_attr | attr |
| struct list_head | child |
| uint32_t * | esp |
| struct thread_file_ctx * | file_ctx |
| struct list_head | link |
| struct object | object |
| struct thread * | parent |
| struct thread * | root |
| void * | sem |
| struct list_head | sibling |
| enum thread:: { ... } | status |
| void * | user_data |
| anonymous enum |
| void* arch_data |
Definition at line 71 of file thread.h.
Referenced by onetime_map_init(), onetime_unmap(), page_fault_handler(), pthread_cancel(), pthread_create(), pthread_init(), and thread_get_arch_data().
| struct thread_attr attr |
| uint32_t* esp |
최근의 스택 pointer
Definition at line 83 of file thread.h.
Referenced by do_irq(), page_fault_handler(), pthread_self(), and x86_util_get_ring().
| struct thread_file_ctx* file_ctx |
Definition at line 85 of file thread.h.
Referenced by close(), fileno(), ioctl(), lseek(), open(), read(), thread_get_stderr(), thread_get_stdin(), thread_get_stdout(), and write().
Definition at line 64 of file thread.h.
Referenced by pthread_cancel(), and thread_create().
| struct thread* root |
최상위 부모 쓰레드 포인터
Definition at line 66 of file thread.h.
Referenced by onetime_map_init(), onetime_unmap(), and pthread_create().
| void* sem |
Definition at line 86 of file thread.h.
Referenced by sem_clear(), sem_destroy(), sem_post(), and sem_wait().
| enum { ... } status |
현재 쓰레드 상태 정의
Referenced by thread_get_status(), and thread_set_status().
| void* user_data |
Definition at line 72 of file thread.h.
Referenced by pthread_cancel(), pthread_create(), pthread_init(), and thread_get_user_data().
1.8.4