Skip to content

Conversation

triplef
Copy link
Contributor

@triplef triplef commented Aug 12, 2024

_dispatch_install_thread_detach_callback() is currently only available on Android specifically to detach threads from the JVM. This patch removes the #ifdefs to add the callback on all platforms, and moves it up in _libdispatch_tsd_cleanup() to be called before TSD cleanup.

This enables libraries/apps to release thread-local data when threads managed by libdispatch exit.

See gnustep/libs-base#428.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant