Added missing thread.h.
This commit is contained in:
parent
1c3d1039ff
commit
f0eafa60c9
1 changed files with 12 additions and 0 deletions
12
src/thread.h
Normal file
12
src/thread.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
typedef void thread_t;
|
||||
thread_t *thread_create(void (*thread_rout)(void *param), void *param);
|
||||
void thread_kill(thread_t *handle);
|
||||
|
||||
typedef void event_t;
|
||||
event_t *thread_create_event();
|
||||
void thread_set_event(event_t *event);
|
||||
void thread_reset_event(event_t *_event);
|
||||
int thread_wait_event(event_t *event, int timeout);
|
||||
void thread_destroy_event(event_t *_event);
|
||||
|
||||
void thread_sleep(int t);
|
||||
Loading…
Reference in a new issue