This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2001-04-09 20:54:03 +01:00
|
|
|
/* ----------------------------- **
|
|
|
|
** no locks **
|
|
|
|
** ----------------------------- */
|
|
|
|
|
|
|
|
#define INIT_LOCK(LOCK_VAR)
|
|
|
|
#define LOCK(LOCK_VAR)
|
|
|
|
#define UNLOCK(LOCK_VAR)
|
|
|
|
#define IS_LOCKED(LOCK_VAR)
|
|
|
|
#define IS_UNLOCKED(LOCK_VAR)
|
|
|
|
|
|
|
|
#define READ_LOCK(RWLOCK_VAR)
|
|
|
|
#define READ_UNLOCK(RWLOCK_VAR)
|
|
|
|
#define WRITE_LOCK(RWLOCK_VAR) YAPEnterCriticalSection()
|
|
|
|
#define WRITE_UNLOCK(RWLOCK_VAR) YAPLeaveCriticalSection()
|
|
|
|
#define INIT_RWLOCK(RWLOCK_VAR)
|
|
|
|
|
|
|
|
|
2013-11-12 08:34:26 +00:00
|
|
|
#define MUTEX_LOCK(LOCK_VAR)
|
|
|
|
#define MUTEX_TRYLOCK(LOCK_VAR)
|
|
|
|
#define MUTEX_UNLOCK(LOCK_VAR)
|