[PATCH] revised fix for nanosleep check in GLIBCXX_ENABLE_LIBSTDCXX_TIME for darwin

Jonathan Wakely jwakely.gcc@gmail.com
Wed Oct 10 23:19:00 GMT 2012


On 11 October 2012 00:09, Jonathan Wakely wrote:
> On 9 October 2012 18:49, Benjamin De Kosnik wrote:
>>
>>> I don't like the sched_yield macro being set there because it's
>>> detected correctly by configure anyway, but I'm not going to labour
>>> that point any more.
>>
>> Indeed. Then somebody will waste hours in the future wondering why
>> configure says no but their TU says yes.
>>
>> At least a comment in the configure bits admitting defeat, people.
>
> Committed to trunk like so.

Oops, that changelog entry missed out the PR number, so it hasn't
updated Bugzilla, sorry.

Jack, please test and check and unpatched GCC trunk now supports
this_thread::yield() and this_thread::sleep_for().

Thanks for persevering to get it working.



More information about the Libstdc++ mailing list