Searched refs:z_semaphore (Results 1 – 2 of 2) sorted by relevance
44 k_sem_init(&semaphore->z_semaphore, initial_count, max_count); in osSemaphoreNew()75 status = k_sem_take(&semaphore->z_semaphore, K_FOREVER); in osSemaphoreAcquire()77 status = k_sem_take(&semaphore->z_semaphore, K_NO_WAIT); in osSemaphoreAcquire()79 status = k_sem_take(&semaphore->z_semaphore, in osSemaphoreAcquire()100 return k_sem_count_get(&semaphore->z_semaphore); in osSemaphoreGetCount()115 if (k_sem_count_get(&semaphore->z_semaphore) == in osSemaphoreRelease()116 semaphore->z_semaphore.limit) { in osSemaphoreRelease()120 k_sem_give(&semaphore->z_semaphore); in osSemaphoreRelease()
48 struct k_sem z_semaphore; member