Suggest Once instead of AtomicBool.

Co-authored-by: Kevin Reid <kpreid@switchb.org>
This commit is contained in:
Mara Bos 2024-06-07 15:37:13 +02:00 committed by GitHub
parent 1e18872a90
commit 17da70abf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ main function.
- A library that wants to make use of inheriting thread locals will have to
register a global hook, and will need to keep track of whether its hook has
already been added (e.g. in a static `AtomicBool`).
already been added (e.g. in a static `std::sync::Once`).
- The hooks will not run if threads are spawned through e.g. pthread directly,
bypassing the Rust standard library.