#include <string.h>
#include <iostream>
-#include "glws.hpp"
#include "os_binary.hpp"
#include "os_time.hpp"
#include "os_workqueue.hpp"
}
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;