typo
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@60 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
45d3a0a08e
commit
f37fb06241
|
@ -188,13 +188,13 @@ zap_status_t zap_mutex_lock(zap_mutex_t *mutex)
|
|||
return ZAP_SUCCESS;
|
||||
}
|
||||
|
||||
zap_status_t zap_zap_mutex_trylock(zap_mutex_t *mutex)
|
||||
zap_status_t zap_mutex_trylock(zap_mutex_t *mutex)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if (!TryEnterCriticalSection(&mutex->mutex))
|
||||
return ZAP_FAIL;
|
||||
#else
|
||||
if (pthread_zap_mutex_trylock(&mutex->mutex))
|
||||
if (pthread_mutex_trylock(&mutex->mutex))
|
||||
return ZAP_FAIL;
|
||||
#endif
|
||||
return ZAP_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue