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/helpers.c | |
parent | 38b98de78eceb77e0b2acc84877bf425ba0fb07d (diff) |
Use standard types for the RWLock
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r-- | Alc/helpers.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index 77a660d1..07e87815 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -584,24 +584,24 @@ void SetRTPriority(void) } -static void Lock(volatile ALenum *l) +static void Lock(volatile int *l) { - while(ExchangeInt(l, AL_TRUE) == AL_TRUE) + while(ExchangeInt(l, true) == true) althrd_yield(); } -static void Unlock(volatile ALenum *l) +static void Unlock(volatile int *l) { - ExchangeInt(l, AL_FALSE); + ExchangeInt(l, false); } void RWLockInit(RWLock *lock) { lock->read_count = 0; lock->write_count = 0; - lock->read_lock = AL_FALSE; - lock->read_entry_lock = AL_FALSE; - lock->write_lock = AL_FALSE; + lock->read_lock = false; + lock->read_entry_lock = false; + lock->write_lock = false; } void ReadLock(RWLock *lock) |