(start_thread): Use CALL_THREAD_FCT if defined.

This commit is contained in:
Ulrich Drepper 2003-03-14 23:18:42 +00:00
parent 2e49caba0e
commit 42c8f44c05
1 changed files with 4 additions and 0 deletions

View 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. */