ncloader
0.1
메인 페이지
모듈
데이타 구조
파일들
파일 목록
전역
모두
데이타 구조
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
매크로
그룹들
페이지들
thread.h
이 파일의 문서화 페이지로 가기
1
42
46
enum
thread_state
{
47
THREAD_STATE_CREATED
= 0xbeefBEEF,
48
THREAD_STATE_RUNNING
= 0x01,
49
THREAD_STATE_SLEEP
= 0x02,
50
THREAD_STATE_ZOMBIE
= 0x04,
51
THREAD_STATE_DESTROYED
= 0xDEADdead,
52
THREAD_STATE_DESTROYING
= 0x00DEAD00,
53
};
55
59
enum
thread_type
{
60
THREAD_TYPE_KERNEL
= 0x00,
61
THREAD_TYPE_USER
= 0x03,
62
THREAD_TYPE_MAX
= 0xFF,
63
};
64
68
enum
thread_attribute
{
69
THREAD_ATTR_JOINABLE
= 0x00,
70
THREAD_ATTR_DETACHED
= 0x01,
71
THREAD_ATTR_MAX
= 0xFF,
72
};
73
74
struct
thread
;
75
85
extern
struct
thread
*
thread_create
(
void
*(*e)(
void
*),
void
*arg);
86
93
extern
void
thread_destroy
(
struct
thread
*handle);
94
102
extern
void
thread_set_state
(
struct
thread
*handle,
enum
thread_state
state
);
103
115
extern
enum
thread_state
thread_state
(
struct
thread
*handle);
116
119
extern
void
thread_set_exit_value
(
struct
thread
*
thread
,
void
*ret);
120
123
extern
void
*
thread_exit_value
(
struct
thread
*
thread
);
124
125
extern
void
thread_set_attribute
(
struct
thread
*tcb,
enum
thread_attribute
attribute
);
126
127
extern
enum
thread_attribute
thread_attribute
(
struct
thread
*
thread
);
128
129
extern
void
*
thread_context
(
struct
thread
*
thread
);
130
131
extern
void
thread_set_context
(
struct
thread
*
thread
,
void
*
context
);
132
133
extern
struct
thread
*
thread_prev
(
struct
thread
*
thread
);
134
135
extern
struct
thread
*
thread_next
(
struct
thread
*
thread
,
int
circle);
136
stage2
common
include
thread.h
생성시간 : 월 1월 6 2014 00:58:13, 프로젝트명 : ncloader, 생성자 :
http://nicesj.com