Why doesn't mktspec() use clock_gettime?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 9 23:16:21 PST 2015


On Fri, 09 Jan 2015 19:17:49 -0800
Andrei Alexandrescu via Digitalmars-d <digitalmars-d at puremagic.com>
wrote:

> On 1/9/15 6:13 PM, weaselcat wrote:
> > 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
> 
> Thanks. What library would that be? Is it unavailable on some platforms? 
> If always available, couldn't we just link with it? -- Andrei
on older GNU/Linux systems it requires -lrt. it doesn't with relatively
new glibc (something that is 1.5 year old is ok, AFAIR), and i see no
reasons to be conservative here, but...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150110/f3680923/attachment.sig>


More information about the Digitalmars-d mailing list