util: Move the implementation of futex_wake and futex_wait from futex.h to futex.c
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 3 Sep 2022 08:58:05 +0000 (16:58 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 18 Oct 2022 23:20:25 +0000 (23:20 +0000)
commit095dfc6caa29e150b5c8e9566320eda1117e714b
tree60754ce30314e7a7aaf2c13611416a470c1b3190
parentde34c2c29b03a2ea8e1b266736dd9b5cf1b1ce00
util: Move the implementation of futex_wake and futex_wait from futex.h to futex.c

Doing this is to avoid include bloat on Windows that pulls windows.h,
for other unix platforms, it's also benefit include the used symbols only when use
futex_wake and futex_wait.
No functional change, there is no performance incur because function call is consume
much less time than syscall

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19120>
src/util/futex.c [new file with mode: 0644]
src/util/futex.h
src/util/meson.build