From 7235b6a45a6b59de287201041b504473fdc109c5 Mon Sep 17 00:00:00 2001 From: Moses Turner Date: Sat, 5 Mar 2022 08:14:33 -0600 Subject: [PATCH] u/sink: Add some comments --- src/xrt/auxiliary/util/u_sink_queue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xrt/auxiliary/util/u_sink_queue.c b/src/xrt/auxiliary/util/u_sink_queue.c index a51d8f7d9..6f672368c 100644 --- a/src/xrt/auxiliary/util/u_sink_queue.c +++ b/src/xrt/auxiliary/util/u_sink_queue.c @@ -52,6 +52,8 @@ struct u_sink_queue pthread_t thread; pthread_mutex_t mutex; + + //! So we can wake the mainloop up pthread_cond_t cond; //! Should we keep running. @@ -141,7 +143,7 @@ queue_mainloop(void *ptr) pthread_cond_wait(&q->cond, &q->mutex); } - // Where we woken up to turn off. + // In this case, queue_break_apart woke us up to turn us off. if (!q->running) { break; }