14 ATOMIC(int) read_lock
;
15 ATOMIC(int) read_entry_lock
;
16 ATOMIC(int) write_lock
;
18 #define RWLOCK_STATIC_INITIALIZE { ATOMIC_INIT_STATIC(0), ATOMIC_INIT_STATIC(0), \
19 ATOMIC_INIT_STATIC(false), ATOMIC_INIT_STATIC(false), \
20 ATOMIC_INIT_STATIC(false) }
22 void RWLockInit(RWLock
*lock
);
23 void ReadLock(RWLock
*lock
);
24 void ReadUnlock(RWLock
*lock
);
25 void WriteLock(RWLock
*lock
);
26 void WriteUnlock(RWLock
*lock
);
32 #endif /* AL_RWLOCK_H */