Why doesn't mktspec() use clock_gettime?
weaselcat via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 9 18:13:58 PST 2015
On Saturday, 10 January 2015 at 02:03:17 UTC, Andrei Alexandrescu
wrote:
> cc Sean Kelly
>
> https://github.com/D-Programming-Language/druntime/blob/master/src/core/sync/config.d#L28
>
> Looks like that use has been disable with static if (false).
> What was the reason?
>
> A coworker spent a few hours debugging a matter that pointed to
> this issue. He removed the "false" and replaced CLOCK_REALTIME
> with CLOCK_MONOTONIC in our druntime tree.
>
> Any insight into the matter? How should we address it by
> supporting multiple clock types portably?
>
>
> Thanks,
>
> Andrei
https://github.com/D-Programming-Language/druntime/commit/998739c
More information about the Digitalmars-d
mailing list