about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-14 23:18:42 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-14 23:18:42 +0000
commit42c8f44c05148a94ba8fef62716f90b61c863287 (patch)
treea4818f5cc2a6cb8bf1dcdfd6a9a4af0ea2b6e399 /nptl
parent2e49caba0e26d87f901c2045981bd5d6640531b2 (diff)
downloadglibc-42c8f44c05148a94ba8fef62716f90b61c863287.tar.gz
glibc-42c8f44c05148a94ba8fef62716f90b61c863287.tar.xz
glibc-42c8f44c05148a94ba8fef62716f90b61c863287.zip
(start_thread): Use CALL_THREAD_FCT if defined.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/pthread_create.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index c0d9ec08f5..ea057473a0 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.  */