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

Function thread_mutex_lock

lib_acl/src/private/private_thread_mutex.c:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62int thread_mutex_lock(acl_pthread_mutex_t *mutex)
63{
64 acl_assert(mutex);
65
66 if (WaitForSingleObject(mutex->id, INFINITE) == WAIT_FAILED)
67 return -1;
68
69 return 0;
70}
71
72int thread_mutex_unlock(acl_pthread_mutex_t *mutex)
73{

Callers 6

reopen_logFunction · 0.85
fork_prepareFunction · 0.85
net_vsyslogFunction · 0.85
mem_slice_freeFunction · 0.85
tls_mem_allocFunction · 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…