summaryrefslogtreecommitdiff
path: root/src/Threads.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-20 01:34:09 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-20 01:34:09 -0800
commit3a91332a70abfc777a352c46727f54426c982371 (patch)
treee2ea6da7b045af8daf749c957b70bdf721864a1e /src/Threads.cc
parent28e250cda01038c91fb9b69206c6f61f24764469 (diff)
A few more Win32 / VisualStudio fixes.
Diffstat (limited to 'src/Threads.cc')
-rw-r--r--src/Threads.cc9
1 files changed, 2 insertions, 7 deletions
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) {