util/mesa/wide: Rename _SIMPLE_MTX_INITIALIZER_NP to SIMPLE_MTX_INITIALIZER
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/18393>
This commit is contained in:
@@ -59,7 +59,7 @@ int ut_perfetto_enabled;
|
||||
*/
|
||||
static struct list_head ctx_list = { &ctx_list, &ctx_list };
|
||||
|
||||
static simple_mtx_t ctx_list_mutex = _SIMPLE_MTX_INITIALIZER_NP;
|
||||
static simple_mtx_t ctx_list_mutex = SIMPLE_MTX_INITIALIZER;
|
||||
#endif
|
||||
|
||||
struct u_trace_payload_buf {
|
||||
|
||||
@@ -77,7 +77,7 @@ typedef struct {
|
||||
uint32_t val;
|
||||
} simple_mtx_t;
|
||||
|
||||
#define _SIMPLE_MTX_INITIALIZER_NP { 0 }
|
||||
#define SIMPLE_MTX_INITIALIZER { 0 }
|
||||
|
||||
#define _SIMPLE_MTX_INVALID_VALUE 0xd0d0d0d0
|
||||
|
||||
@@ -151,7 +151,7 @@ typedef struct simple_mtx_t {
|
||||
mtx_t mtx;
|
||||
} simple_mtx_t;
|
||||
|
||||
#define _SIMPLE_MTX_INITIALIZER_NP { UTIL_ONCE_FLAG_INIT }
|
||||
#define SIMPLE_MTX_INITIALIZER { UTIL_ONCE_FLAG_INIT }
|
||||
|
||||
void _simple_mtx_plain_init_once(simple_mtx_t *mtx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user