Skip to content

Commit ab2088d

Browse files
authored
Warn that detached threads may not call libuv
This seems like an important caveat, but was not documented. Ref JuliaLang/julia#60056 (comment)
1 parent b33162d commit ab2088d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/threading.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ Threads
8282
8383
Detaches a thread. Detached threads automatically release their
8484
resources upon termination, eliminating the need for the application to
85-
call `uv_thread_join`.
85+
call `uv_thread_join`. It is undefined behavior for the thread referenced by `tid`
86+
to call any libuv APIs after being detached.
8687
8788
.. versionadded:: 1.50.0
8889

0 commit comments

Comments
 (0)