From 55c2ece87567ec831b9cf5c2a4a9d30035c093bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 24 Oct 2012 14:01:49 +0100 Subject: [PATCH] Don't parse concurrently with retracing. There are race conditions. --- retrace/retrace_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/retrace/retrace_main.cpp b/retrace/retrace_main.cpp index df69d4a..f55d520 100644 --- a/retrace/retrace_main.cpp +++ b/retrace/retrace_main.cpp @@ -223,6 +223,10 @@ static void do_all_calls(void) } thread_wq->queue_work(render_work); + + // XXX: Flush immediately to avoid race conditions on unprotected + // static/global variables. + thread_wq->flush(); } else { render_work->run(); delete render_work; -- 2.43.0