diff options
Diffstat (limited to 'Alc/rwlock.h')
-rw-r--r-- | Alc/rwlock.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/rwlock.h b/Alc/rwlock.h index 0c321a11..764940fa 100644 --- a/Alc/rwlock.h +++ b/Alc/rwlock.h @@ -1,17 +1,17 @@ #ifndef AL_RWLOCK_H #define AL_RWLOCK_H -#include "AL/al.h" +#include "bool.h" #include "atomic.h" typedef struct { volatile RefCount read_count; volatile RefCount write_count; - volatile ALenum read_lock; - volatile ALenum read_entry_lock; - volatile ALenum write_lock; + volatile int read_lock; + volatile int read_entry_lock; + volatile int write_lock; } RWLock; -#define RWLOCK_STATIC_INITIALIZE { 0, 0, AL_FALSE, AL_FALSE, AL_FALSE } +#define RWLOCK_STATIC_INITIALIZE { 0, 0, false, false, false } void RWLockInit(RWLock *lock); void ReadLock(RWLock *lock); |