Lines Matching defs:sema
38 struct sema {
46 void sema_init(struct sema *sema, int value, const char *description);
47 void sema_destroy(struct sema *sema);
48 void _sema_post(struct sema *sema, const char *file, int line);
49 void _sema_wait(struct sema *sema, const char *file, int line);
50 int _sema_timedwait(struct sema *sema, int timo, const char *file, int
52 int _sema_trywait(struct sema *sema, const char *file, int line);
53 int sema_value(struct sema *sema);
55 #define sema_post(sema) _sema_post((sema), LOCK_FILE, LOCK_LINE)
56 #define sema_wait(sema) _sema_wait((sema), LOCK_FILE, LOCK_LINE)
57 #define sema_timedwait(sema, timo) \
58 _sema_timedwait((sema), (timo), LOCK_FILE, LOCK_LINE)
59 #define sema_trywait(sema) _sema_trywait((sema), LOCK_FILE, LOCK_LINE)