From dd747573191938c9721945ac455d325d39d64fd2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 31 Aug 2011 01:00:19 -0700 Subject: Add a function to initialize a RWLock --- OpenAL32/alThunk.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'OpenAL32/alThunk.c') 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)); } -- cgit v1.2.3