Searched refs:_sema_init (Results 1 – 2 of 2) sorted by relevance
57 extern int _sema_init(losMutexDef_t *sem, unsigned int value);61 #define init_MUTEX(sem) _sema_init((losMutexDef_t*)(sem), 1)63 #define init_MUTEX_LOCKED(sem) (VOID)_sema_init((losMutexDef_t*)(sem), 0);
39 int _sema_init(losMutexDef_t *sem, unsigned int value) in _sema_init() function67 if (_sema_init(sem, sem->count) != 0) { in _sema_lock()