Motr  M0
semaphore.h File Reference
#include "lib/types.h"
#include "lib/time.h"
#include "lib/user_space/semaphore.h"
Include dependency graph for semaphore.h:

Go to the source code of this file.

Macros

#define __MOTR_LIB_SEMAPHORE_H__
 

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 void m0_semaphore_drain (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)
 

Macro Definition Documentation

◆ __MOTR_LIB_SEMAPHORE_H__

#define __MOTR_LIB_SEMAPHORE_H__

Definition at line 26 of file semaphore.h.