Rev 1655 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef __GRXMUTEX_H
#define __GRXMUTEX_H
#include "config.h"
#ifdef GRXMUTEX
#include <kernel/int_sem.h>
#define g_sem_t internal_sem_t
#define g_sem_init(s,value) internal_sem_init(s,value)
#define g_sem_wait(s) internal_sem_wait(s)
#define g_sem_signal(s) internal_sem_post(s)
#else
#define g_sem_t int
#define g_sem_init(s,value)
#define g_sem_wait(s)
#define g_sem_signal(s)
#endif
extern g_sem_t grxsem;
#define grxlock() g_sem_wait(&grxsem)
#define grxunlock() g_sem_signal(&grxsem)
#endif