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

Function pthread_create_proxy

vm/ByteCodeTranslator/src/malloc.c:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139#ifdef __APPLE__
140
141static int
142pthread_create_proxy(pthread_t* thread,
143 const pthread_attr_t* attr,
144 void* (*start_routine)(void*),
145 void* arg) {
146 rpmalloc_thread_initialize();
147 thread_starter_arg* starter_arg = rpmalloc(sizeof(thread_starter_arg));
148 starter_arg->real_start = start_routine;
149 starter_arg->real_arg = arg;
150 return pthread_create(thread, attr, thread_starter, starter_arg);
151}
152
153typedef struct interpose_s {
154 void* new_func;

Callers

nothing calls this directly

Calls 3

rpmallocFunction · 0.85
pthread_createFunction · 0.70

Tested by

no test coverage detected