util: Remove the need of _MTX_INITIALIZER_NP by using simple_mtx_t/SIMPLE_MTX_INITIAL...
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 23 Aug 2022 19:08:48 +0000 (03:08 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 01:32:47 +0000 (01:32 +0000)
commit35c7f2e80937268b4f23fb6755d7da5f13307769
tree87de4511703a5c9fd79c1df7752bf18e8681c747
parent574b4c547ffd12ab6736b982fb23e9d95613b0b9
util: Remove the need of _MTX_INITIALIZER_NP by using simple_mtx_t/SIMPLE_MTX_INITIALIZER in u_debug_stack.c

This removed the thread-unsafe function initialize_backtrace_mutex.
And remove the _MTX_INITIALIZER_NP that's doesn't belong to c11

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19154>
src/util/u_debug_stack.c