ncloader  0.1
 모두 데이타 구조 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 매크로 그룹들 페이지들
thread.h
이 파일의 문서화 페이지로 가기
1 
42 
47  THREAD_STATE_CREATED = 0xbeefBEEF,
51  THREAD_STATE_DESTROYED = 0xDEADdead,
52  THREAD_STATE_DESTROYING = 0x00DEAD00,
53 };
55 
62  THREAD_TYPE_MAX = 0xFF,
63 };
64 
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