mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
u/sink: Add some comments
This commit is contained in:
parent
37f0c901d2
commit
7235b6a45a
|
@ -52,6 +52,8 @@ struct u_sink_queue
|
||||||
|
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
pthread_mutex_t mutex;
|
pthread_mutex_t mutex;
|
||||||
|
|
||||||
|
//! So we can wake the mainloop up
|
||||||
pthread_cond_t cond;
|
pthread_cond_t cond;
|
||||||
|
|
||||||
//! Should we keep running.
|
//! Should we keep running.
|
||||||
|
@ -141,7 +143,7 @@ queue_mainloop(void *ptr)
|
||||||
pthread_cond_wait(&q->cond, &q->mutex);
|
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) {
|
if (!q->running) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue