summaryrefslogtreecommitdiffstats
path: root/src/util/u_queue.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-10-22 17:38:41 +0200
committerNicolai Hähnle <[email protected]>2017-11-09 11:53:19 +0100
commit185061aef41401bead9e5d15aa00ffa2fcf7ef8c (patch)
treec04fd6225648d34f5ffd5c943162c47d5109b712 /src/util/u_queue.h
parentf0d3a4de75fdb865c058aba8614f0fe6ba5f0969 (diff)
u_queue: add util_queue_finish for waiting for previously added jobs
Schedule one job for every thread, and wait on a barrier inside the job execution function. v2: avoid alloca (fixes Windows build error) Reviewed-by: Marek Olšák <[email protected]> (v1)
Diffstat (limited to 'src/util/u_queue.h')
-rw-r--r--src/util/u_queue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/u_queue.h b/src/util/u_queue.h
index dfe21532817..a54ec710114 100644
--- a/src/util/u_queue.h
+++ b/src/util/u_queue.h
@@ -214,6 +214,8 @@ void util_queue_add_job(struct util_queue *queue,
void util_queue_drop_job(struct util_queue *queue,
struct util_queue_fence *fence);
+void util_queue_finish(struct util_queue *queue);
+
int64_t util_queue_get_thread_time_nano(struct util_queue *queue,
unsigned thread_index);