00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __OSKA_THREAD_H
00010 #define __OSKA_THREAD_H
00011
00012 #include <oska/event.h>
00013
00014 #ifdef __OSKA_API_DOC
00015
00027 typedef implementation_defined os_thread_t;
00028
00046 int os_thread_create(os_thread_t *thread, const char *name, void (*func)(void *), void *arg);
00047
00064 void os_thread_stop(os_thread_t *thread, os_event_t *evt);
00065
00076 int os_thread_should_stop(os_thread_t *thread);
00077
00090 void os_try_suspend_thread(os_thread_t *thread);
00091
00092 #endif
00093
00094 #ifdef linux
00095 # include <../linux/thread.h>
00096 #elif defined(ZSDE)
00097 # include <../zoran/thread.h>
00098 #elif defined(KMDF_MAJOR_VERSION)
00099 # include <../windows/kmdf/thread.h>
00100 #else
00101 # error <oska/thread.h> not provided for this OS
00102 #endif
00103
00104 #endif