MCPcopy Create free account
hub / github.com/acl-dev/acl / pthread_mutex_destroy

Function pthread_mutex_destroy

lib_fiber/c/src/common/pthread_patch.c:304–314  ·  view source on GitHub ↗

Free the mutex */

Source from the content-addressed store, hash-verified

302
303/* Free the mutex */
304int pthread_mutex_destroy(pthread_mutex_t *mutex)
305{
306 if (mutex) {
307 if (mutex->id) {
308 CloseHandle(mutex->id);
309 mutex->id = 0;
310 }
311 return 0;
312 } else
313 return -1;
314}
315
316int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mattr)
317{

Callers 11

queue_freeFunction · 0.85
mbox_freeFunction · 0.85
atomic_freeFunction · 0.85
sync_timer_freeFunction · 0.85
acl_fiber_event_freeFunction · 0.85
sync_waiter_freeFunction · 0.85
acl_fiber_mutex_freeFunction · 0.85
acl_fiber_cond_freeFunction · 0.85
thread_mutex_destroyFunction · 0.85
~lockerMethod · 0.85
mysql_thread.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…