1 #ifndef SEMAPHORE_H 2 #define SEMAPHORE_H 3 4 // Note: used in modules and platform independent code. 5 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values) 6 7 //========================================================== 8 9 // Semaphore & Assert 10 11 extern void DebugAssert(char*, int); 12 13 extern int CreateBinarySemaphore(char* name, int init); 14 extern int TakeSemaphore(int sem, int timeout); 15 extern void GiveSemaphore(int sem); 16 extern void DeleteSemaphore(int sem); 17 18 //--------------------------------------------------------------- 19 20 #endif