]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(start_thread): Use CALL_THREAD_FCT if defined.
authorUlrich Drepper <drepper@redhat.com>
Fri, 14 Mar 2003 23:18:42 +0000 (23:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 14 Mar 2003 23:18:42 +0000 (23:18 +0000)
nptl/pthread_create.c

index c0d9ec08f539254b02bcb9663fb93546edda3b56..ea057473a0d552aab4b20045e21b87f559a3dc01 100644 (file)
@@ -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.  */