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

Function pthread_mutex_unlock

lib_fiber/c/src/common/pthread_patch.c:382–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382int pthread_mutex_unlock(pthread_mutex_t *mutex)
383{
384 const char *myname = "pthread_mutex_unlock";
385
386 if (mutex == NULL) {
387 msg_error("%s, %s(%d): input invalid",
388 __FILE__, myname, __LINE__);
389 return -1;
390 }
391
392 if (ReleaseMutex(mutex->id) == FALSE) {
393 msg_error("%s, %s(%d): ReleaseMutex error(%s)",
394 __FILE__, myname, __LINE__, last_serror());
395 return -1;
396 }
397
398 return 0;
399}
400
401long thread_self(void)
402{

Callers 15

fiber_initFunction · 0.85
queue_freeFunction · 0.85
queue_waitFunction · 0.85
queue_pop_timedwaitFunction · 0.85
queue_pushFunction · 0.85
queue_qlenFunction · 0.85
mbox_send2Function · 0.85
thread_exitFunction · 0.85
pthread_key_createFunction · 0.85
pthread_setspecificFunction · 0.85
atomic_setFunction · 0.85
atomic_casFunction · 0.85

Calls 2

msg_errorFunction · 0.70
last_serrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…