Here's take two of the fast mutex path. This version has a check for linux/futex.h and it split into two patches. First patch introduces full_mtx_t and updates callers. Second patch adds the inline mtx_t.
Kristian Høgsberg (2): mesa: Split full featured mutex into its own type mesa: Add new fast mtx_t mutex type for basic use cases configure.ac | 3 + include/c11/threads_posix.h | 149 ++++++++++++++++++++++++++++++++--- include/c11/threads_win32.h | 48 ++++++++--- src/gallium/auxiliary/os/os_thread.h | 10 +-- src/mesa/main/mtypes.h | 2 +- src/mesa/main/shared.c | 4 +- src/mesa/main/texobj.c | 4 +- src/mesa/main/texobj.h | 4 +- 8 files changed, 191 insertions(+), 33 deletions(-) -- 2.2.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev