Motr  M0
semaphore.c File Reference
#include "lib/semaphore.h"
#include "lib/assert.h"
#include "lib/errno.h"
#include "lib/types.h"
#include "lib/arith.h"
Include dependency graph for semaphore.c:

Go to the source code of this file.

Functions

M0_INTERNAL int m0_semaphore_init (struct m0_semaphore *semaphore, unsigned value)
 
M0_INTERNAL void m0_semaphore_fini (struct m0_semaphore *semaphore)
 
M0_INTERNAL void m0_semaphore_down (struct m0_semaphore *semaphore)
 
M0_INTERNAL void m0_semaphore_up (struct m0_semaphore *semaphore)
 
M0_INTERNAL bool m0_semaphore_trydown (struct m0_semaphore *semaphore)
 
M0_INTERNAL unsigned m0_semaphore_value (struct m0_semaphore *semaphore)
 
M0_INTERNAL bool m0_semaphore_timeddown (struct m0_semaphore *semaphore, const m0_time_t abs_timeout)