|
nckernel
0.1
|
쓰레드의 현재 상태를 설정한다. More...
#include <stddef.h>#include <stdint.h>#include <sys/types.h>#include <stdio.h>#include <fcntl.h>#include <unistd.h>#include <pthread.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <stdarg.h>#include <assert.h>#include <object.h>#include <list.h>#include <thread.h>#include <vfs.h>#include <debug.h>#include <common.h>#include <interrupt.h>
Go to the source code of this file.
Macros | |
| #define | THREAD_IS_ROOT(tcb) ((tcb)->parent == NULL && (tcb)->root == (tcb)) |
| #define | THREAD_LIST_INIT(tcb) |
| #define | THREAD_LIST_LINK(tcb) |
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) |
쓰레드의 현재 상태를 설정한다.
쓰레드 콘트롤 블럭에서 추가 관리 정보를 얻어 온다.
쓰레드 콘트롤 블럭에서 아키텍쳐 연관 정보를 얻어 온다.
해당 쓰레드의 최초 스택 포인터 값을 가져온다.
쓰레드의 현재 상태를 가져온다.
| [in] | tcb | |
| [in] | attr |
| [in] | tcb | 쓰레드 콘트롤 블럭 |
| [in] | status | 쓰레드 상태 |
| [in] | tcb | 쓰레드 콘트롤 블럭 |
| [in] | tcb | 쓰레드 콘트롤 블럭 |
| [in] | tcb | 쓰레드 콘트롤 블럭 |
| [in] | tcb | 쓰레드 콘트롤 블럭 |
Definition in file thread.c.
| #define THREAD_IS_ROOT | ( | tcb) | ((tcb)->parent == NULL && (tcb)->root == (tcb)) |
| #define THREAD_LIST_INIT | ( | tcb) |
| #define THREAD_LIST_LINK | ( | tcb) |
1.8.4