Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 14:37:59 +0100
From:      Chris Vine <chris@cvine.freeserve.co.uk>
To:        freebsd-threads@freebsd.org
Subject:   Re: Monotonic clocks
Message-ID:  <20100524143759.28f8c9b5@boulder.homenet>
In-Reply-To: <20100524140513.6475cb2c@boulder.homenet>
References:  <20100524140513.6475cb2c@boulder.homenet>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24 May 2010 14:05:13 +0100
Chris Vine <chris@cvine.freeserve.co.uk> wrote:

> I am the upstream maintainer of efax-gtk and I am told recent versions
> of the program will not compile on the FreeBSD port of debian, because
> FreeBSD does not appear to provide pthread_condattr_setclock() to set
> a monotonic clock on condition variables.
> 
> The program configuration script calls up sysconf() to determine
> whether the POSIX advanced realtime option (_SC_MONOTONIC_CLOCK) is
> provided, and FreeBSD's sysconf() indicates that it is.  Is anything
> else needed to enable monotonic clocks on BSD, or is sysconf()
> incorrectly advertising the implementation of monotonic clocks in
> BSD's libc?

Ah, on looking up the SUS it looks as if I have to check
_SC_CLOCK_SELECTION as well (although it appears rather pointless to
have a monotonic clock if you can't actually select it).

Chris





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100524143759.28f8c9b5>