util: Fixes prototype of threads_timespec_compare
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 20 Jun 2023 18:49:39 +0000 (02:49 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Jun 2023 06:18:40 +0000 (06:18 +0000)
commit65249c6f0a76bc671dbb216b4aed851ce99f00c9
tree3201638b8aa1a96e38c0427656d24a8b932739b5
parent146adbd2f49c2e25dc10a0cb388c3872c313d710
util: Fixes prototype of threads_timespec_compare

using const struct timespec * is enough

Fixes: 45bd24708a9 ("c11: Improve mtx_timedlock to use timespec_get instead of time(NULL)")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9230

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23753>
src/c11/impl/threads_posix.c