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

Function mempool_malloc_with_mutex

lib_acl/src/stdlib/memory/acl_mempool.c:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static void *mempool_malloc_with_mutex(const char *filename, int line, size_t size)
115{
116 void *ptr;
117
118 MUTEX_LOCK;
119 ptr = acl_allocator_membuf_alloc(filename, line, __var_allocator, size);
120 MUTEX_UNLOCK;
121
122 return (ptr);
123}
124
125static void *mempool_calloc_with_mutex(const char *filename, int line, size_t nmemb, size_t size)
126{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…