14 ATOMIC_FLAG read_lock
;
15 ATOMIC_FLAG read_entry_lock
;
16 ATOMIC_FLAG write_lock
;
18 #define RWLOCK_STATIC_INITIALIZE { ATOMIC_INIT_STATIC(0), ATOMIC_INIT_STATIC(0), \
19 ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT }
21 void RWLockInit(RWLock
*lock
);
22 void ReadLock(RWLock
*lock
);
23 void ReadUnlock(RWLock
*lock
);
24 void WriteLock(RWLock
*lock
);
25 void WriteUnlock(RWLock
*lock
);
31 #endif /* AL_RWLOCK_H */