diff options
Diffstat (limited to 'src/gallium/auxiliary/util/u_queue.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_queue.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_queue.h b/src/gallium/auxiliary/util/u_queue.h index 48cd9f4c707..acebb51382f 100644 --- a/src/gallium/auxiliary/util/u_queue.h +++ b/src/gallium/auxiliary/util/u_queue.h @@ -39,7 +39,9 @@ * Put this into your job structure. */ struct util_queue_fence { - pipe_semaphore done; + pipe_mutex mutex; + pipe_condvar cond; + int signalled; }; struct util_queue_job { @@ -79,4 +81,10 @@ util_queue_is_initialized(struct util_queue *queue) return queue->thread != 0; } +static inline bool +util_queue_fence_is_signalled(struct util_queue_fence *fence) +{ + return fence->signalled != 0; +} + #endif |