Title
Value of this_thread::get_id() underspecified for detached thread
Status
nad
Section
[thread.thread.this]
Submitter
Switzerland

Created on 2010-08-25.00:00:00 last changed 147 months ago

Messages

Date: 2011-02-11.00:00:00

[ 2011-02-11 Reflector discussion ]

Moved to Tentatively NAD after 5 votes.

Date: 2010-11-22.00:00:00

[ 2010-11-22 Howard Hinnant observes ]

[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.

Date: 2010-11-01.19:24:04

[ Resolution proposed by ballot comment: ]

Add some text to clarify that get_id() still returns the same value even after detaching.

Date: 2010-10-24.16:08:33

Addresses CH-24

What would be the value this_thread::get_id() when called from a detached thread?

History
Date User Action Args
2012-10-21 10:56:08adminsetmessages: + msg6200
2012-10-21 10:56:08adminsetmessages: + msg6199
2012-10-21 10:56:08adminsetstatus: open -> nad
2010-11-01 19:24:04adminsetmessages: + msg5243
2010-10-24 16:08:33adminsetmessages: + msg5027
2010-08-25 00:00:00admincreate