pipe_condvar was made unnecessary with
fd33a6bcd7f12.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
#endif
}
-/* pipe_condvar
- */
-typedef cnd_t pipe_condvar;
-
/*
* pipe_barrier
unsigned waiters;
uint64_t sequence;
mtx_t mutex;
- pipe_condvar condvar;
+ cnd_t condvar;
} pipe_barrier;
static inline void pipe_barrier_init(pipe_barrier *barrier, unsigned count)
typedef struct
{
mtx_t mutex;
- pipe_condvar cond;
+ cnd_t cond;
int counter;
} pipe_semaphore;
/** Use when validating, to signal that all mappings are finished */
/* TODO: Actually validation does not reach this stage yet */
- pipe_condvar event;
+ cnd_t event;
};
*/
struct util_queue_fence {
mtx_t mutex;
- pipe_condvar cond;
+ cnd_t cond;
int signalled;
};
struct util_queue {
const char *name;
mtx_t lock;
- pipe_condvar has_queued_cond;
- pipe_condvar has_space_cond;
+ cnd_t has_queued_cond;
+ cnd_t has_space_cond;
thrd_t *threads;
int num_queued;
unsigned num_threads;
*/
unsigned head;
unsigned tail;
- pipe_condvar change;
+ cnd_t change;
mtx_t mutex;
};
unsigned id;
mtx_t mutex;
- pipe_condvar signalled;
+ cnd_t signalled;
boolean issued;
unsigned rank;
/* draw locking */
mtx_t draw_mutex;
- pipe_condvar draw_cond;
+ cnd_t draw_cond;
unsigned draw_num_rules;
int draw_blocker;
int draw_blocked;
unsigned tail;
unsigned cur_instr;
BOOL worker_wait;
- pipe_condvar event_pop;
- pipe_condvar event_push;
+ cnd_t event_pop;
+ cnd_t event_push;
mtx_t mutex_pop;
mtx_t mutex_push;
};
thrd_t worker;
struct nine_queue_pool* pool;
BOOL terminate;
- pipe_condvar event_processed;
+ cnd_t event_processed;
mtx_t mutex_processed;
struct NineDevice9 *device;
BOOL processed;