Why doesn't mktspec() use clock_gettime?
weaselcat via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 9 19:56:16 PST 2015
On Saturday, 10 January 2015 at 03:17:50 UTC, Andrei Alexandrescu
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
I believe it's a POSIX system function, requires librt.
More information about the Digitalmars-d
mailing list