|
nckernel
0.1
|
쓰레드를 위한 구조체 선언 및 오퍼레이션 정의 More...
Files | |
| file | thread.c |
| 쓰레드의 현재 상태를 설정한다. | |
| file | thread.c |
| 쓰레드의 현재 상태를 설정한다. | |
| file | thread.c |
| 쓰레드의 현재 상태를 설정한다. | |
| file | thread.c |
| 쓰레드의 현재 상태를 설정한다. | |
| file | thread.c |
| 쓰레드의 현재 상태를 설정한다. | |
| file | thread.c |
| 쓰레드의 현재 상태를 설정한다. | |
Data Structures | |
| struct | file |
| struct | file_object_info |
| 파일 객체를 생성할 때, object_create 시 전달 된 인자 정보들을 표현한다. More... | |
| struct | local_tcb |
| 이 자료구조는 Stack 으로 사용될 메모리 영역의 제일 처음 부분에 저장된다. More... | |
| struct | thread |
| 쓰레드를 위한 구조체 정의 More... | |
| struct | thread_attr |
| 쓰레드의 속성 정보를 가진다. More... | |
| struct | thread_file_ctx |
Macros | |
| #define | MAX_ENTRY 256 |
| #define | THREAD_TAG "ncthread" |
| #define | THREAD_TAGLEN 9 |
Functions | |
| int | thread_create (struct thread *tcb, struct thread_attr *attr) |
| void * | thread_get_arch_data (struct thread *tcb) |
| unsigned long | thread_get_stack_pointer (struct thread *tcb) |
| int | thread_get_status (struct thread *tcb) |
| FILE * | thread_get_stderr (void) |
| 현재 쓰레드의 표준 에러 출력을 가져 온다. More... | |
| FILE * | thread_get_stdin (void) |
| 현재 쓰레드의 표준 입력을 가져온다. return FILE * More... | |
| FILE * | thread_get_stdout (void) |
| 현재 쓰레드의 표준 출력을 가져온다. More... | |
| void * | thread_get_user_data (struct thread *tcb) |
| void | thread_set_status (struct thread *tcb, int status) |
쓰레드를 위한 구조체 선언 및 오퍼레이션 정의
| #define THREAD_TAG "ncthread" |
Definition at line 12 of file thread.h.
Referenced by pthread_self().
| int thread_create | ( | struct thread * | tcb, |
| struct thread_attr * | attr | ||
| ) |
Definition at line 670 of file thread.c.
References object_ops::create, object, object_create(), and object_init().
Referenced by pthread_create(), and pthread_init().


| void* thread_get_arch_data | ( | struct thread * | tcb) |
| unsigned long thread_get_stack_pointer | ( | struct thread * | tcb) |
Definition at line 705 of file thread.c.
References thread_attr::addr, assert, attr, thread_attr::size, and thread_attr::stack.
| int thread_get_status | ( | struct thread * | tcb) |
| FILE* thread_get_stderr | ( | void | ) |
현재 쓰레드의 표준 에러 출력을 가져 온다.
Definition at line 68 of file thread.c.
References file_ctx, NULL, pthread_self(), STDERR_FILENO, and thread_file_ctx::table.

| FILE* thread_get_stdin | ( | void | ) |
현재 쓰레드의 표준 입력을 가져온다. return FILE *
Definition at line 52 of file thread.c.
References file_ctx, NULL, pthread_self(), STDIN_FILENO, and thread_file_ctx::table.

| FILE* thread_get_stdout | ( | void | ) |
현재 쓰레드의 표준 출력을 가져온다.
Definition at line 84 of file thread.c.
References file_ctx, NULL, pthread_self(), STDOUT_FILENO, and thread_file_ctx::table.

| void* thread_get_user_data | ( | struct thread * | tcb) |
1.8.4