[PATCH, v3] Potential solution to librt issue.

Daniel Jacobowitz drow@false.org
Thu Jul 24 13:51:00 GMT 2008


On Thu, Jul 24, 2008 at 02:55:24PM +0200, Paolo Bonzini wrote:
> Possibilities include:
>
> 1) implementing clock_gettime on Linux using the system call interface.  I 
> guess that the clock_gettime syscall itself does not need pthreads.

The dependcies vary with which clock you're using.  Jakub's the expert
here, but if I'm reading glibc correctly CLOCK_MONOTONIC has no useful
fallback if the kernel does not support it; so you should be able to
do the syscall yourself.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Libstdc++ mailing list