MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / pthread_create_proxy

Function pthread_create_proxy

source/extern/malloc.c:430–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428#ifdef __APPLE__
429
430static int
431pthread_create_proxy(pthread_t* thread,
432 const pthread_attr_t* attr,
433 void* (*start_routine)(void*),
434 void* arg) {
435 rpmalloc_initialize();
436 thread_starter_arg* starter_arg = rpmalloc(sizeof(thread_starter_arg));
437 starter_arg->real_start = start_routine;
438 starter_arg->real_arg = arg;
439 return pthread_create(thread, attr, thread_starter, starter_arg);
440}
441
442MAC_INTERPOSE_SINGLE(pthread_create_proxy, pthread_create);
443

Callers

nothing calls this directly

Calls 3

rpmalloc_initializeFunction · 0.85
rpmallocFunction · 0.85
pthread_createFunction · 0.85

Tested by

no test coverage detected