From ab2088d4a448dde3705280a1f66b6edac523c5a7 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Mon, 10 Nov 2025 17:43:58 -0500 Subject: [PATCH] Warn that detached threads may not call libuv This seems like an important caveat, but was not documented. Ref https://github.com/JuliaLang/julia/pull/60056#issuecomment-3509030539 --- docs/src/threading.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/threading.rst b/docs/src/threading.rst index 27c1d6ee2..4a94323d0 100644 --- a/docs/src/threading.rst +++ b/docs/src/threading.rst @@ -82,7 +82,8 @@ Threads Detaches a thread. Detached threads automatically release their resources upon termination, eliminating the need for the application to - call `uv_thread_join`. + call `uv_thread_join`. It is undefined behavior for the thread referenced by `tid` + to call any libuv APIs after being detached. .. versionadded:: 1.50.0