mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
(start_thread): Use CALL_THREAD_FCT if defined.
This commit is contained in:
@@ -224,7 +224,11 @@ start_thread (void *arg)
|
|||||||
if (__builtin_expect (setjmp (pd->cancelbuf) == 0, 1))
|
if (__builtin_expect (setjmp (pd->cancelbuf) == 0, 1))
|
||||||
{
|
{
|
||||||
/* Run the code the user provided. */
|
/* 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));
|
THREAD_SETMEM (pd, result, pd->start_routine (pd->arg));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clean up any state libc stored in thread-local variables. */
|
/* Clean up any state libc stored in thread-local variables. */
|
||||||
|
Reference in New Issue
Block a user