Amanieu / thread_local-rs

Per-object thread-local storage for Rust
Apache License 2.0
328 stars 41 forks source link

Documentation update? #65

Closed CKingX closed 10 months ago

CKingX commented 10 months ago

According to the documentation, Thread Id may be reused. However, according to the standard library, "ThreadIds are guaranteed not to be reused, even when a thread terminates."

Is this a documentation mistake?

Amanieu commented 10 months ago

We generate our own thread IDs and don't use ThreadId from the standard library.

CKingX commented 10 months ago

That makes sense. Thank you!