Searched refs:permits (Results 1 – 2 of 2) sorted by relevance
12 sem->permits = initial_permits; in sem_init()19 return *(volatile typeof(sem->permits) *) &sem->permits; in __time_critical_func()21 static_assert(sizeof(sem->permits) == 2, ""); in __time_critical_func()22 return *(volatile int16_t *) &sem->permits; in __time_critical_func()29 if (sem->permits > 0) { in __time_critical_func()30 sem->permits--; in __time_critical_func()49 if (sem->permits > 0) { in __time_critical_func()50 sem->permits--; in __time_critical_func()62 if (sem->permits > 0) { in __time_critical_func()63 sem->permits--; in __time_critical_func()[all …]
33 int16_t permits; member74 void sem_reset(semaphore_t *sem, int16_t permits);