This fixes a potential crash where on a sequence like this:
Thread 0: Check if queue is not empty. Thread 1: Remove item from queue, making it empty. Thread 0: Do something assuming queue is not empty.
CC: 10.5
f546902 clover: Add a mutex to guard queue::queued_events
src/gallium/state_trackers/clover/core/queue.cpp | 2 ++
src/gallium/state_trackers/clover/core/queue.hpp | 2 ++
2 files changed, 4 insertions(+)
Upstream: cgit.freedesktop.org