mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
9cec82de71
Since htl does not actually need a stack switch, we can initialize it like nptl is, avoiding all sorts of startup issues with ifunc. More precisely, htl defines __pthread_initialize_minimal instead of the elder _cthread_init_routine. We can then drop the stack switching dances.
22 lines
670 B
Plaintext
22 lines
670 B
Plaintext
/* pthread initializer is weak in glibc. It must be included if glibc
|
|
is to start threading. */
|
|
EXTERN(__pthread_initialize_minimal)
|
|
|
|
/* Weak references in glibc that must be filled if glibc is to be
|
|
thread safe. */
|
|
EXTERN(cthread_detach)
|
|
EXTERN(cthread_fork)
|
|
EXTERN(cthread_keycreate)
|
|
EXTERN(cthread_getspecific)
|
|
EXTERN(cthread_setspecific)
|
|
EXTERN(__mutex_lock_solid)
|
|
EXTERN(__mutex_unlock_solid)
|
|
/* For libio stream locking. */
|
|
EXTERN(_cthreads_flockfile)
|
|
EXTERN(_cthreads_funlockfile)
|
|
EXTERN(_cthreads_ftrylockfile)
|
|
/* To get the sigthread stack layout on fork */
|
|
EXTERN(pthread_getattr_np)
|
|
EXTERN(pthread_attr_getstack)
|
|
EXTERN(__pthread_enable_asynccancel)
|