This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.
Section: 30.3.3 [thread.thread.this] Status: NAD Submitter: Switzerland Opened: 2010-08-25 Last modified: 2017-02-03
Priority: Not Prioritized
View all other issues in [thread.thread.this].
View all issues with NAD status.
What would be the value this_thread::get_id() when called from a detached thread?
[ Resolution proposed by ballot comment: ]
Add some text to clarify that get_id() still returns the same value even after detaching.
[ 2010-11-22 Howard Hinnant observes ]
30.3.3 [thread.thread.this]/1 contains the following sentence describing this_thread::get_id():
... No other thread of execution shall have this id and this thread of execution shall always have this id.
I don't object to adding "even if detached" to this sentence, but it seems unnecessary to me. "Always" means always.
[2011-02-11 Reflector discussion]
Moved to Tentatively NAD after 5 votes.