| 139 | #ifdef __APPLE__ |
| 140 | |
| 141 | static int |
| 142 | pthread_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 | |
| 153 | typedef struct interpose_s { |
| 154 | void* new_func; |
nothing calls this directly
no test coverage detected