From: José Fonseca Date: Wed, 24 Oct 2012 13:01:49 +0000 (+0100) Subject: Don't parse concurrently with retracing. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=55c2ece87567ec831b9cf5c2a4a9d30035c093bb;p=apitrace Don't parse concurrently with retracing. There are race conditions. --- 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;