diff options
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_cpufreq.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/hud/hud_diskstat.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/hud/hud_nic.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/hud/hud_sensors_temp.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/os/os_thread.h | 3 | ||||
-rw-r--r-- | src/gallium/auxiliary/rtasm/rtasm_execmem.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_flush.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_memory.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_refcnt.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_symbol.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_queue.c | 2 |
11 files changed, 10 insertions, 13 deletions
diff --git a/src/gallium/auxiliary/hud/hud_cpufreq.c b/src/gallium/auxiliary/hud/hud_cpufreq.c index 78754b28a9e..41e5827c663 100644 --- a/src/gallium/auxiliary/hud/hud_cpufreq.c +++ b/src/gallium/auxiliary/hud/hud_cpufreq.c @@ -62,7 +62,7 @@ struct cpufreq_info static int gcpufreq_count = 0; static struct list_head gcpufreq_list; -pipe_static_mutex(gcpufreq_mutex); +static mtx_t gcpufreq_mutex = _MTX_INITIALIZER_NP; static struct cpufreq_info * find_cfi_by_index(int cpu_index, int mode) diff --git a/src/gallium/auxiliary/hud/hud_diskstat.c b/src/gallium/auxiliary/hud/hud_diskstat.c index af6e62d9da5..fb64e3d906b 100644 --- a/src/gallium/auxiliary/hud/hud_diskstat.c +++ b/src/gallium/auxiliary/hud/hud_diskstat.c @@ -82,7 +82,7 @@ struct diskstat_info */ static int gdiskstat_count = 0; static struct list_head gdiskstat_list; -pipe_static_mutex(gdiskstat_mutex); +static mtx_t gdiskstat_mutex = _MTX_INITIALIZER_NP; static struct diskstat_info * find_dsi_by_name(const char *n, int mode) diff --git a/src/gallium/auxiliary/hud/hud_nic.c b/src/gallium/auxiliary/hud/hud_nic.c index 634add162b8..2fbeaa51d92 100644 --- a/src/gallium/auxiliary/hud/hud_nic.c +++ b/src/gallium/auxiliary/hud/hud_nic.c @@ -67,7 +67,7 @@ struct nic_info */ static int gnic_count = 0; static struct list_head gnic_list; -pipe_static_mutex(gnic_mutex); +static mtx_t gnic_mutex = _MTX_INITIALIZER_NP; static struct nic_info * find_nic_by_name(const char *n, int mode) diff --git a/src/gallium/auxiliary/hud/hud_sensors_temp.c b/src/gallium/auxiliary/hud/hud_sensors_temp.c index 11b8a4cd510..4d723cc4fff 100644 --- a/src/gallium/auxiliary/hud/hud_sensors_temp.c +++ b/src/gallium/auxiliary/hud/hud_sensors_temp.c @@ -50,7 +50,7 @@ */ static int gsensors_temp_count = 0; static struct list_head gsensors_temp_list; -pipe_static_mutex(gsensor_temp_mutex); +static mtx_t gsensor_temp_mutex = _MTX_INITIALIZER_NP; struct sensors_temp_info { diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index af350b878ab..a6a9fea1f7e 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -108,9 +108,6 @@ static inline int pipe_thread_is_self( pipe_thread thread ) return 0; } -#define pipe_static_mutex(mutex) \ - static mtx_t mutex = _MTX_INITIALIZER_NP - #define pipe_mutex_init(mutex) \ (void) mtx_init(&(mutex), mtx_plain) diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c index f7e605e9563..a60d52174ae 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_execmem.c +++ b/src/gallium/auxiliary/rtasm/rtasm_execmem.c @@ -63,7 +63,7 @@ #define EXEC_HEAP_SIZE (10*1024*1024) -pipe_static_mutex(exec_mutex); +static mtx_t exec_mutex = _MTX_INITIALIZER_NP; static struct mem_block *exec_heap = NULL; static unsigned char *exec_mem = NULL; diff --git a/src/gallium/auxiliary/util/u_debug_flush.c b/src/gallium/auxiliary/util/u_debug_flush.c index 6a8a91d3130..d12520501ed 100644 --- a/src/gallium/auxiliary/util/u_debug_flush.c +++ b/src/gallium/auxiliary/util/u_debug_flush.c @@ -77,7 +77,7 @@ struct debug_flush_ctx { struct list_head head; }; -pipe_static_mutex(list_mutex); +static mtx_t list_mutex = _MTX_INITIALIZER_NP; static struct list_head ctx_list = {&ctx_list, &ctx_list}; static struct debug_stack_frame * diff --git a/src/gallium/auxiliary/util/u_debug_memory.c b/src/gallium/auxiliary/util/u_debug_memory.c index f1cc8eb1b7c..2f7031d6dfc 100644 --- a/src/gallium/auxiliary/util/u_debug_memory.c +++ b/src/gallium/auxiliary/util/u_debug_memory.c @@ -87,7 +87,7 @@ struct debug_memory_footer static struct list_head list = { &list, &list }; -pipe_static_mutex(list_mutex); +static mtx_t list_mutex = _MTX_INITIALIZER_NP; static unsigned long last_no = 0; diff --git a/src/gallium/auxiliary/util/u_debug_refcnt.c b/src/gallium/auxiliary/util/u_debug_refcnt.c index 0a4786442fc..eda95bbfff7 100644 --- a/src/gallium/auxiliary/util/u_debug_refcnt.c +++ b/src/gallium/auxiliary/util/u_debug_refcnt.c @@ -52,7 +52,7 @@ static FILE *stream; /* TODO: maybe move this serial machinery to a stand-alone module and * expose it? */ -pipe_static_mutex(serials_mutex); +static mtx_t serials_mutex = _MTX_INITIALIZER_NP; static struct util_hash_table *serials_hash; static unsigned serials_last; diff --git a/src/gallium/auxiliary/util/u_debug_symbol.c b/src/gallium/auxiliary/util/u_debug_symbol.c index 10efdd593e5..cfd354a6fe6 100644 --- a/src/gallium/auxiliary/util/u_debug_symbol.c +++ b/src/gallium/auxiliary/util/u_debug_symbol.c @@ -271,7 +271,7 @@ debug_symbol_print(const void *addr) } struct util_hash_table* symbols_hash; -pipe_static_mutex(symbols_mutex); +static mtx_t symbols_mutex = _MTX_INITIALIZER_NP; static unsigned hash_ptr(void* p) { diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c index c84e0ad6840..ca637ad922b 100644 --- a/src/gallium/auxiliary/util/u_queue.c +++ b/src/gallium/auxiliary/util/u_queue.c @@ -40,7 +40,7 @@ static void util_queue_killall_and_wait(struct util_queue *queue); static once_flag atexit_once_flag = ONCE_FLAG_INIT; static struct list_head queue_list; -pipe_static_mutex(exit_mutex); +static mtx_t exit_mutex = _MTX_INITIALIZER_NP; static void atexit_handler(void) |