MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / thread_starter

Function thread_starter

vm/ByteCodeTranslator/src/malloc.c:122–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120} thread_starter_arg;
121
122static void*
123thread_starter(void* argptr) {
124 thread_starter_arg* arg = argptr;
125 void* (*real_start)(void*) = arg->real_start;
126 void* real_arg = arg->real_arg;
127 rpmalloc_thread_initialize();
128 rpfree(argptr);
129 pthread_setspecific(destructor_key, (void*)1);
130 return (*real_start)(real_arg);
131}
132
133static void
134thread_destructor(void* value) {

Callers

nothing calls this directly

Calls 3

rpfreeFunction · 0.85
pthread_setspecificFunction · 0.85

Tested by

no test coverage detected