|
|
@ -320,7 +320,7 @@ hsBool hsSemaphore::TryWait() |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifdef USE_SEMA |
|
|
|
#ifdef USE_SEMA |
|
|
|
int status = ::sem_trywait(fPSema); |
|
|
|
int status = ::sem_trywait(fPSema); |
|
|
|
return status != E_AGAIN; |
|
|
|
return status != EAGAIN; |
|
|
|
#else |
|
|
|
#else |
|
|
|
int status = ::pthread_mutex_trylock(&fPMutex); |
|
|
|
int status = ::pthread_mutex_trylock(&fPMutex); |
|
|
|
hsThrowIfOSErr(status); |
|
|
|
hsThrowIfOSErr(status); |
|
|
|