From: Ulrich Drepper Date: Fri, 14 Mar 2003 23:18:42 +0000 (+0000) Subject: (start_thread): Use CALL_THREAD_FCT if defined. X-Git-Tag: cvs/glibc-2_3_3~1233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42c8f44c05148a94ba8fef62716f90b61c863287;p=thirdparty%2Fglibc.git (start_thread): Use CALL_THREAD_FCT if defined. --- diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index c0d9ec08f53..ea057473a0d 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -224,7 +224,11 @@ start_thread (void *arg) if (__builtin_expect (setjmp (pd->cancelbuf) == 0, 1)) { /* Run the code the user provided. */ +#ifdef CALL_THREAD_FCT + THREAD_SETMEM (pd, result, CALL_THREAD_FCT (pd)); +#else THREAD_SETMEM (pd, result, pd->start_routine (pd->arg)); +#endif } /* Clean up any state libc stored in thread-local variables. */