summaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h1
-rw-r--r--OpenAL32/alThunk.c6
2 files changed, 2 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 1e4d3d61..564730c4 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -321,6 +321,7 @@ typedef struct {
volatile ALenum write_lock;
} RWLock;
+void RWLockInit(RWLock *lock);
void ReadLock(RWLock *lock);
void ReadUnlock(RWLock *lock);
void WriteLock(RWLock *lock);
diff --git a/OpenAL32/alThunk.c b/OpenAL32/alThunk.c
index 5784a358..7cd83c23 100644
--- a/OpenAL32/alThunk.c
+++ b/OpenAL32/alThunk.c
@@ -32,11 +32,7 @@ static RWLock ThunkLock;
void ThunkInit(void)
{
- ThunkLock.read_count = 0;
- ThunkLock.write_count = 0;
- ThunkLock.read_lock = AL_FALSE;
- ThunkLock.read_entry_lock = AL_FALSE;
- ThunkLock.write_lock = AL_FALSE;
+ RWLockInit(&ThunkLock);
ThunkArraySize = 1;
ThunkArray = calloc(1, ThunkArraySize * sizeof(*ThunkArray));
}