[vlc-devel] [PATCH v4 3/4] compat: add clock_getres for darwin

Marvin Scholz epirat07 at gmail.com
Mon Mar 23 09:07:53 CET 2020


On 23 Mar 2020, at 8:29, Rémi Denis-Courmont wrote:

> Le sunnuntaina 22. maaliskuuta 2020, 10.28.37 EET Marvin Scholz a 
> écrit :
>> ---
>>  compat/clock_getres.c | 54 
>> +++++++++++++++++++++++++++++++++++++++++++
>>  configure.ac          |  2 +-
>>  include/vlc_fixups.h  |  3 +++
>>  3 files changed, 58 insertions(+), 1 deletion(-)
>>  create mode 100644 compat/clock_getres.c
>
> Probably ok but why is this needed?
>

I plan to use the posix thread code for Darwin too, as the missing clock
functions are the only thing preventing that right now.

And clock_getres is used there

../../src/posix/thread.c
60:    if (unlikely(clock_getres(CLOCK_MONOTONIC, &res) != 0 || 
res.tv_sec != 0))

> -- 
> 雷米‧德尼-库尔蒙
> http://www.remlab.net/
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list