mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
gallium: pipe_mutex_init() is of type void.
Both the windows and fallback versions are void already.
This commit is contained in:
parent
13dad5294b
commit
bf6ed0b962
2 changed files with 2 additions and 5 deletions
|
|
@ -84,10 +84,7 @@ struct pipe_atomic {
|
|||
static INLINE void
|
||||
p_atomic_set(struct pipe_atomic *v, int32_t i)
|
||||
{
|
||||
int ret;
|
||||
ret = pipe_mutex_init(v->mutex);
|
||||
if (ret)
|
||||
abort();
|
||||
pipe_mutex_init(v->mutex);
|
||||
pipe_mutex_lock(v->mutex);
|
||||
v->count = i;
|
||||
pipe_mutex_unlock(v->mutex);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ typedef pthread_cond_t pipe_condvar;
|
|||
static pipe_mutex mutex = PTHREAD_MUTEX_INITIALIZER
|
||||
|
||||
#define pipe_mutex_init(mutex) \
|
||||
pthread_mutex_init(&(mutex), NULL)
|
||||
(void) pthread_mutex_init(&(mutex), NULL)
|
||||
|
||||
#define pipe_mutex_destroy(mutex) \
|
||||
pthread_mutex_destroy(&(mutex))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue