Closed
Description
Update description
Tracking issue for std::thread::ThreadId
. Points to consider when stabilizing:
- Implementation of a mutex + u64, unconditional panic if space is exhausted
- Various traits on
ThreadId
, includingCopy
Original report
Not sure if it can be considered as bug but it sure cripples the existing threading API (e.g., makes it harder for a thread to identify itself or store/pass its identity).
// it could also be nice if Thread was able to return a unique integer id() (or hash itself?..).