Title
this_thread::yield too strong
Status
c++11
Section
[thread.thread.this]
Submitter
Lawrence Crowl

Created on 2008-09-15.00:00:00 last changed 153 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [thread.thread.this]/3:

void this_thread::yield();

Effects: Offers the operating system implementation the opportunity to reschedule. another thread.

Date: 2010-10-21.18:28:33

[ Post Summit: ]

Recommend move to Tentatively Ready.

Date: 2008-09-15.00:00:00

I never thought I'd say this, but this_thread::yield seems to be too strong in specification. The issue is that some systems distinguish between yielding to another thread in the same process and yielding to another process. Given that the C++ standard only talks about a single program, one can infer that the specification allows yielding only to another thread within the same program. Posix has no facility for that behavior. Can you please file an issue to weaken the wording. Perhaps "Offers the operating system the opportunity to reschedule."

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg4215
2010-10-21 18:28:33adminsetmessages: + msg4214
2008-09-15 00:00:00admincreate