Skip to content
Snippets Groups Projects
Commit 5bb7ee4f authored by Tom Stellard's avatar Tom Stellard Committed by Emil Velikov
Browse files

clover: Add a mutex to guard queue::queued_events


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 <mesa-stable@lists.freedesktop.org>

Reviewed-by: default avatarFrancisco Jerez <currojerez@riseup.net>
(cherry picked from commit f546902d)
parent 0024b85c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment