Changeset 63004 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Aug 4, 2016 5:09:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/semmutex-posix.cpp
r62564 r63004 67 67 }; 68 68 69 #if def RT_OS_DARWIN69 #if defined(RT_OS_DARWIN) || defined(RT_OS_NETBSD) 70 70 /** 71 71 * This function emulate pthread_mutex_timedlock on Mac OS X 72 72 */ 73 static int DarwinPthreadMutexTimedlock(pthread_mutex_t * mutex, const struct timespec * pTsAbsTimeout)73 static int rtSemFallbackPthreadMutexTimedlock(pthread_mutex_t * mutex, const struct timespec * pTsAbsTimeout) 74 74 { 75 75 int rc = 0; … … 298 298 299 299 /* take mutex */ 300 #if ndef RT_OS_DARWIN300 #if !defined(RT_OS_DARWIN) && !defined(RT_OS_NETBSD) 301 301 int rc = pthread_mutex_timedlock(&pThis->Mutex, &ts); 302 302 #else 303 int rc = DarwinPthreadMutexTimedlock(&pThis->Mutex, &ts);303 int rc = rtSemFallbackPthreadMutexTimedlock(&pThis->Mutex, &ts); 304 304 #endif 305 305 RTThreadUnblocked(hThreadSelf, RTTHREADSTATE_MUTEX);
Note:
See TracChangeset
for help on using the changeset viewer.