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

Function thread_starter

source/extern/malloc.c:411–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409} thread_starter_arg;
410
411static void*
412thread_starter(void* argptr) {
413 thread_starter_arg* arg = argptr;
414 void* (*real_start)(void*) = arg->real_start;
415 void* real_arg = arg->real_arg;
416 rpmalloc_thread_initialize();
417 rpfree(argptr);
418 pthread_setspecific(destructor_key, (void*)1);
419 return (*real_start)(real_arg);
420}
421
422static void
423thread_destructor(void* value) {

Callers

nothing calls this directly

Calls 2

rpfreeFunction · 0.85

Tested by

no test coverage detected