From 3a91332a70abfc777a352c46727f54426c982371 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 20 Dec 2013 01:34:09 -0800 Subject: A few more Win32 / VisualStudio fixes. --- src/Threads.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/Threads.cc') diff --git a/src/Threads.cc b/src/Threads.cc index c05d23f..f5f9a7f 100644 --- a/src/Threads.cc +++ b/src/Threads.cc @@ -29,14 +29,9 @@ Balau::Lock::Lock() { Balau::RWLock::RWLock() { int r; - pthread_rwlockattr_t attr; - r = pthread_rwlockattr_init(&attr); - RAssert(r == 0, "Couldn't initialize rwlock attribute; r = %i", r); - r = pthread_rwlock_init(&m_lock, &attr); - RAssert(r == 0, "Couldn't initialize mutex; r = %i", r); - r = pthread_rwlockattr_destroy(&attr); - RAssert(r == 0, "Couldn't destroy rwlock attribute; r = %i", r); + r = pthread_rwlock_init(&m_lock, NULL); + RAssert(r == 0, "Couldn't initialize read write lock; r = %i", r); } void * Balau::ThreadHelper::threadProc(void * arg) { -- cgit v1.2.3