1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

LibC+LibPthread: Make sure TLS keys are destroyed after everything else

This ensures that __thread variables can be used when global destructors
are being invoked.
This commit is contained in:
Gunnar Beutner 2021-04-17 18:37:00 +02:00 committed by Andreas Kling
parent 6eedb570a2
commit 4075b306f8
3 changed files with 18 additions and 12 deletions

View file

@ -146,4 +146,6 @@ int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));
void __pthread_key_destroy_for_current_thread();
__END_DECLS