mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
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;
|
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
|
#ifdef WIN32
|
||||||
if (!TryEnterCriticalSection(&mutex->mutex))
|
if (!TryEnterCriticalSection(&mutex->mutex))
|
||||||
return ZAP_FAIL;
|
return ZAP_FAIL;
|
||||||
#else
|
#else
|
||||||
if (pthread_zap_mutex_trylock(&mutex->mutex))
|
if (pthread_mutex_trylock(&mutex->mutex))
|
||||||
return ZAP_FAIL;
|
return ZAP_FAIL;
|
||||||
#endif
|
#endif
|
||||||
return ZAP_SUCCESS;
|
return ZAP_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user