56 #ifndef OSALSEMAPHORE_H_0xF6D6
57 #define OSALSEMAPHORE_H_0xF6D6
63 #if defined (__cplusplus)
72 #define OSALSEMAPHORE_MODULEID (UInt16) 0xF6D6
82 #define OSALSEMAPHORE_STATUSCODEBASE (OSALSEMAPHORE_MODULEID << 12u)
88 #define OSALSEMAPHORE_MAKE_FAILURE(x) ((Int) (0x80000000 \
89 + (OSALSEMAPHORE_STATUSCODEBASE +(x))))
94 #define OSALSEMAPHORE_MAKE_SUCCESS(x) (OSALSEMAPHORE_STATUSCODEBASE + (x))
100 #define OSALSEMAPHORE_E_MEMORY OSALSEMAPHORE_MAKE_FAILURE(1)
106 #define OSALSEMAPHORE_E_INVALIDARG OSALSEMAPHORE_MAKE_FAILURE(2)
112 #define OSALSEMAPHORE_E_FAIL OSALSEMAPHORE_MAKE_FAILURE(3)
118 #define OSALSEMAPHORE_E_TIMEOUT OSALSEMAPHORE_MAKE_FAILURE(4)
124 #define OSALSEMAPHORE_E_HANDLE OSALSEMAPHORE_MAKE_FAILURE(5)
131 #define OSALSEMAPHORE_E_WAITNONE OSALSEMAPHORE_MAKE_FAILURE(6)
137 #define OSALSEMAPHORE_E_RESOURCE OSALSEMAPHORE_MAKE_FAILURE(7)
143 #define OSALSEMAPHORE_SUCCESS OSALSEMAPHORE_MAKE_SUCCESS(0)
154 #define OSALSEMAPHORE_WAIT_FOREVER (~((UInt32) 0u))
160 #define OSALSEMAPHORE_WAIT_NONE ((UInt32) 0u)
166 #define OSALSEMAPHORE_TYPE_VALUE(type) (type & 0x0000FFFF)
172 #define OSALSEMAPHORE_INTTYPE_VALUE(type) (type & 0xFFFF0000)
222 #if defined (__cplusplus)