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

Function mempool_realloc_with_mutex

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

Source from the content-addressed store, hash-verified

135}
136
137static void *mempool_realloc_with_mutex(const char *filename, int line, void *ptr, size_t size)
138{
139 void *buf;
140
141 MUTEX_LOCK;
142 buf = acl_allocator_membuf_realloc(filename, line, __var_allocator, ptr, size);
143 MUTEX_UNLOCK;
144
145 return (buf);
146}
147
148static char *mempool_strdup_with_mutex(const char *filename, int line, const char *str)
149{

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…