mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@62 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
1 parent
e5fb4a3cc0
commit
5013baf37a
10 files changed
+297
-106
No files matched your search
@@ -170,15 +170,17 @@ done:
|
||||
return status;
|
||||
}
|
||||
|
||||
zap_status_t zap_mutex_destroy(zap_mutex_t *mutex)
|
||||
zap_status_t zap_mutex_destroy(zap_mutex_t **mutex)
|
||||
{
|
||||
zap_mutex_t *mp = *mutex;
|
||||
*mutex = NULL;
|
||||
#ifdef WIN32
|
||||
DeleteCriticalSection(&mutex->mutex);
|
||||
DeleteCriticalSection(&mp->mutex);
|
||||
#else
|
||||
if (pthread_mutex_destroy(&mutex->mutex))
|
||||
if (pthread_mutex_destroy(&mp->mutex))
|
||||
return ZAP_FAIL;
|
||||
#endif
|
||||
free(mutex);
|
||||
free(mp);
|
||||
return ZAP_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user