From 2d7456fd762f950519aecf805671b03b8830481e Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 9 Sep 2015 16:20:49 +0200 Subject: [PATCH] Prevent optimizations from zero-summing the wait condition on forked processes on windows --- src/posix-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix-compat.c b/src/posix-compat.c index cebca75..291a727 100644 --- a/src/posix-compat.c +++ b/src/posix-compat.c @@ -91,7 +91,7 @@ struct full_context { struct criterion_test_extra_data suite_data; f_worker_func func; struct pipe_handle pipe; - int resumed; + volatile int resumed; }; static TCHAR g_mapping_name[] = TEXT("WinCriterionWorker");