From aa1fc44aca860660f27a69c466cd626027c0b2d0 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 27 Dec 2015 10:36:45 +0200 Subject: [PATCH] Fixing threading problems by reordering lines at random. It is the only true way. --- test cases/common/102 threads/threadprog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test cases/common/102 threads/threadprog.c b/test cases/common/102 threads/threadprog.c index 2dff169c6..47a5d1805 100644 --- a/test cases/common/102 threads/threadprog.c +++ b/test cases/common/102 threads/threadprog.c @@ -9,9 +9,9 @@ DWORD WINAPI thread_func(LPVOID ignored) { } int main(int argc, char **argv) { - printf("Starting thread.\n"); - HANDLE th; DWORD id; + HANDLE th; + printf("Starting thread.\n"); th = CreateThread(NULL, 0, thread_func, NULL, 0, &id); WaitForSingleObject(th, INFINITE); printf("Stopped thread.\n");