diff options
author | Chris Robinson <[email protected]> | 2014-05-07 01:03:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-07 01:03:06 -0700 |
commit | d8d609b9401b2f8fc121cccbde253c17f07d2580 (patch) | |
tree | 57f1d3ced022bdde823cb2e758913ac3bdc8ddd3 /Alc/rwlock.h | |
parent | 38b98de78eceb77e0b2acc84877bf425ba0fb07d (diff) |
Use standard types for the RWLock
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); |