From bf3ce581afe0806728ef106413d6852750b98bdc Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 8 Sep 2004 08:36:43 +0000 Subject: [PATCH] OS X has pthread_cond_timedwait but not pthread_mutex_timedlock. --- stepmania/src/arch/Threads/Threads_Pthreads.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stepmania/src/arch/Threads/Threads_Pthreads.cpp b/stepmania/src/arch/Threads/Threads_Pthreads.cpp index 41cb1986c3..6a881bbdeb 100644 --- a/stepmania/src/arch/Threads/Threads_Pthreads.cpp +++ b/stepmania/src/arch/Threads/Threads_Pthreads.cpp @@ -104,7 +104,6 @@ MutexImpl_Pthreads::~MutexImpl_Pthreads() } -#if defined(HAVE_PTHREAD_MUTEX_TIMEDLOCK) static bool UseTimedlock() { #if defined(LINUX) @@ -115,7 +114,6 @@ static bool UseTimedlock() return true; } -#endif bool MutexImpl_Pthreads::Lock() { @@ -278,7 +276,6 @@ void SemaImpl_Pthreads::Post() bool SemaImpl_Pthreads::Wait() { -#if defined(HAVE_PTHREAD_MUTEX_TIMEDLOCK) if( UseTimedlock() ) { timeval tv; @@ -330,7 +327,6 @@ bool SemaImpl_Pthreads::Wait() pthread_mutex_unlock( &m_Mutex ); return false; } -#endif pthread_mutex_lock( &m_Mutex ); while( !m_iValue )