MCPcopy Create free account
hub / github.com/3proxy/3proxy / init_mem

Function init_mem

src/myalloc.c:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47#endif
48
49void init_mem(void) {
50 mem_init++;
51 pthread_mutex_init(&mem_mutex, NULL);
52#if DEBUGLEVEL > 2
53fprintf(stderr, "Memory initialized\n");
54fflush(stderr);
55#endif
56#ifdef _WIN32
57 myheap = HeapCreate(0, MEM64K*16, 0);
58#endif
59}
60
61void * myalloc64k(){
62

Callers 2

myalloc64kFunction · 0.85
myallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected