[PATCH] Multi threaded version of osl_getGlobalTime on Unix
Arnaud Versini
arnaud.versini at gmail.com
Sun May 19 05:25:25 PDT 2013
In fact I wasn't sure about CLOCK_PROCESS_CPUTIME_ID if it is available on
BSD, so for now I'm using defined(LINUX), but I would like to add detection
on the configure to use the right code on LINUX/BSD/SOLARIS and also MAC OS
X (use MACH specific functions) for this one and my previous one.
2013/5/19 Francois Tigeot <ftigeot at wolfpond.org>
> On Sun, May 19, 2013 at 11:25:36AM +0000, Arnaud Versini (via Code Review)
> wrote:
> >
> > https://gerrit.libreoffice.org/3960
> >
> > +#if defined(LINUX)
> [...]
> > + res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID , NULL);
>
> Why is this hardcoded on LINUX ?
>
> At least FreeBSD also has CLOCK_PROCESS_CPUTIME_ID if I'm not mistaken.
>
> --
> Francois Tigeot
>
--
Arnaud Versini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130519/6aabba76/attachment.html>
More information about the LibreOffice
mailing list