13
0

use glib mutex API

This commit is contained in:
Robin Gareus 2016-03-01 12:53:54 +01:00
parent 38f3d9d68a
commit 36d30f8c89

View File

@ -1582,7 +1582,7 @@ WaveView::drawing_thread ()
* as we do rendering.
*/
request_queue_lock.unlock (); /* some RAII would be good here */
lm.release (); /* some RAII would be good here */
try {
requestor->generate_image (req, true);
@ -1590,7 +1590,7 @@ WaveView::drawing_thread ()
req->image.clear(); /* just in case it was set before the exception, whatever it was */
}
request_queue_lock.lock ();
lm.acquire ();
req.reset (); /* drop/delete request as appropriate */
}