00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __OSKA_MUTEX_H
00010 #define __OSKA_MUTEX_H
00011
00012 #ifdef __OSKA_API_DOC
00013
00022 typedef implementation_defined os_mutex_t;
00023
00033 void os_mutex_init(os_mutex_t *mutex);
00034
00044 void os_mutex_destroy(os_mutex_t *mutex);
00045
00055 void os_mutex_lock(os_mutex_t *mutex);
00056
00066 void os_mutex_unlock(os_mutex_t *mutex);
00067
00068 #endif
00069
00070 #ifdef linux
00071 # include <../linux/mutex.h>
00072 #elif defined(ZSDE)
00073 # include <../zoran/mutex.h>
00074 #elif defined(KMDF_MAJOR_VERSION)
00075 # include <../windows/kmdf/mutex.h>
00076 #else
00077 # error <oska/mutex.h> not provided for this OS
00078 #endif
00079
00080 #endif