| 428 | #ifdef __APPLE__ |
| 429 | |
| 430 | static int |
| 431 | pthread_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 | |
| 442 | MAC_INTERPOSE_SINGLE(pthread_create_proxy, pthread_create); |
| 443 |
nothing calls this directly
no test coverage detected