trylock
This commit is contained in:
@@ -185,7 +185,7 @@ bool MutexImpl_Pthreads::TryLock()
|
|||||||
if( ret == EBUSY )
|
if( ret == EBUSY )
|
||||||
return false;
|
return false;
|
||||||
if( ret )
|
if( ret )
|
||||||
RageException::Throw( "pthread_mutex_lock failed: %s", strerror(errno) );
|
RageException::Throw( "pthread_mutex_trylock failed: %s", strerror(errno) );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user