This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix --enable-libstdcxx-time documentation, show configure result


Miles Bader <miles@gnu.org> writes:
> The comment in configure.ac says:
>
>    # For clock_gettime, nanosleep and sched_yield support.
>    # NB: The default is [no], because otherwise it requires linking.
>    GLIBCXX_ENABLE_LIBSTDCXX_TIME([no])
...
> The only effect of __GLIBCXX_USE_SCHED_YIELD and _GLIBCXX_USE_NANOSLEEP
> in the libstc++ headers is to define the relevant inline methods
> (std::thread::sleep_for, sleep_until, yield) in the std::thread class.
...
> Given that the std::thread interface is incomplete without these
> enabled, and enabling them seems to have no overhead or effect unless
> they're actually used (and the overhead is obviously desired in that
> case!), wouldn't it be better to enable them by default?

Hmmm, nobody has any insight into this?

Is there a reason I shouldn't file a bug about it?

Thanks,

-Miles

-- 
Advice, n. The smallest current coin.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]