mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
gallium/util: do not use _MTX_INITIALIZER_NP on Windows
We already have another way of initializing these, so it's just a matter of avoiding _MTX_INITIALIZER_NP here. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5902>
This commit is contained in:
parent
485ea7d711
commit
b8c0196116
2 changed files with 8 additions and 0 deletions
|
|
@ -53,7 +53,11 @@ static FILE *stream;
|
|||
/* TODO: maybe move this serial machinery to a stand-alone module and
|
||||
* expose it?
|
||||
*/
|
||||
#ifdef PIPE_OS_WINDOWS
|
||||
static mtx_t serials_mutex;
|
||||
#else
|
||||
static mtx_t serials_mutex = _MTX_INITIALIZER_NP;
|
||||
#endif
|
||||
|
||||
static struct hash_table *serials_hash;
|
||||
static unsigned serials_last;
|
||||
|
|
|
|||
|
|
@ -271,7 +271,11 @@ debug_symbol_print(const void *addr)
|
|||
}
|
||||
|
||||
struct hash_table* symbols_hash;
|
||||
#ifdef PIPE_OS_WINDOWS
|
||||
static mtx_t symbols_mutex;
|
||||
#else
|
||||
static mtx_t symbols_mutex = _MTX_INITIALIZER_NP;
|
||||
#endif
|
||||
|
||||
const char*
|
||||
debug_symbol_name_cached(const void *addr)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue