Searched refs:counter (Results 1 – 3 of 3) sorted by relevance
8 if (atomic_read(&sema->counter) > 0) // 信号量大于0,资源充足 in semaphore_down()9 atomic_dec(&sema->counter); in semaphore_down()29 atomic_inc(&sema->counter); in semaphore_up()
23 atomic_t counter; member36 atomic_set(&sema->counter, count); in semaphore_init()
329 uint16_t counter; member