[Mesa-dev] [PATCH v3] threads, configure.ac, meson.build: define and use HAVE_TIMESPEC_GET

Kyriazis, George george.kyriazis at intel.com
Thu Nov 16 16:47:49 UTC 2017


The problem that I’m seeing with timespec_get is that centos6 does not have it.

I’ve put some changes out for review that actually remove timespec_get() in favor of using a variation of os_time_get_nano().  It’s good to always use the same time functions, and not have multiple ways of doing similar things.

Thoughts?

George


> On Nov 16, 2017, at 8:57 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> 
> On 15 November 2017 at 20:58, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
>> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>> 
>> Tested with Travis and Appveyor.
>> 
>> v2: add HAVE_TIMESPEC_GET for non-Windows Scons builds
>> v3: use check_functions in Scons (Eric)
>> 
>> Cc: Rob Herring <robh at kernel.org>
>> Cc: Alexander von Gluck IV <kallisti5 at unixzen.com>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103674
>> Fixes: f1a364878431 ("threads: update for late C11 changes")
>> Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com> (v2)
>> Reviewed-by: Dylan Baker <dylan at pnwbakers.com> (v2)
>> Reviewed-by: Jon Turney <jon.turney at dronecode.org.uk> (v2)
> 
> Thank you Nicolai, you're a star.
> 
> Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
> 
> -Emil
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list