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

Function thread_mutex_init

lib_acl/src/private/private_thread_mutex.c:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#ifndef ACL_HAS_PTHREAD
19
20int thread_mutex_init(acl_pthread_mutex_t *mutex,
21 const acl_pthread_mutexattr_t *mattr)
22{
23 acl_assert(mutex != NULL);
24
25 mutex->dynamic = 0;
26
27 /* Create the mutex, with initial value signaled */
28 mutex->id = CreateMutex((SECURITY_ATTRIBUTES *) mattr, FALSE, NULL);
29 acl_assert(mutex->id);
30 return 0;
31}
32
33acl_pthread_mutex_t *thread_mutex_create(void)
34{

Callers 4

init_log_mutexFunction · 0.85
open_stream_logFunction · 0.85
open_udp_logFunction · 0.85
acl_memory_debug_startFunction · 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…