On 01/10/2015 08:16 AM, ketmar via Digitalmars-d wrote:
On Fri, 09 Jan 2015 19:17:49 -0800
Andrei Alexandrescu via Digitalmars-d <digitalmars-d@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...
And on Linux we already link with librt anyway.
--
Mike Wey