mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 03:39:08 +00:00
Fix hsThread_Unix compilation.
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user