Files
rust/library/std/src
Jonathan Brouwer faa0d67374 Rollup merge of #149482 - RalfJung:scope-tls-dtors, r=joboet
thread::scope: document how join interacts with TLS destructors

Fixes https://github.com/rust-lang/rust/issues/116237 by documenting the current behavior regarding thread-local destructors as intended. (I'm not stoked about this, but documenting it is better than leaving it unclear.)

This also adds documentation for explicit `join` calls (both for scoped and regular threads), saying that those *will* wait for TLS destructors. That reflects my understanding of the current implementation, which calls `join` on the native thread handle. Are we okay with guaranteeing that? I think we should, so people have at least some chance of implementing "wait for all destructors" manually. This fixes https://github.com/rust-lang/rust/issues/127571.

Cc @rust-lang/libs-api
2026-01-29 17:47:31 +01:00
..
2023-12-10 10:56:22 +08:00
2026-01-11 16:39:18 +03:00
2025-01-11 06:35:21 +02:00
2026-01-28 23:00:39 -05:00
2026-01-21 19:20:04 +01:00
2024-04-08 11:57:17 +00:00
2025-02-07 16:54:07 +01:00