pthreads :: NativePthread :: create_ex
new create_ex(nit_thread: Thread, attr: NativePthreadAttr) import Thread.main_intern `{
pthread_t thread;
int r = pthread_create(&thread, attr, (void * (*)(void *))&Thread_main_intern, nit_thread);
if (r == 0) {
pthread_t *pthread = malloc(sizeof(pthread_t));
memmove(pthread, &thread, sizeof(pthread_t));
return pthread;
}
return NULL;
`}
lib/pthreads/pthreads.nit:156,2--166,3