diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-27 10:36:45 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-27 10:36:45 +0200 |
commit | aa1fc44aca860660f27a69c466cd626027c0b2d0 (patch) | |
tree | a9f6be9ea9b774315546e475d9e2e61f2319e964 | |
parent | d92e6c4595db9e27428096eaf40c56a2691e98e7 (diff) | |
download | meson-aa1fc44aca860660f27a69c466cd626027c0b2d0.zip meson-aa1fc44aca860660f27a69c466cd626027c0b2d0.tar.gz meson-aa1fc44aca860660f27a69c466cd626027c0b2d0.tar.bz2 |
Fixing threading problems by reordering lines at random. It is the only true way.
-rw-r--r-- | test cases/common/102 threads/threadprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/102 threads/threadprog.c b/test cases/common/102 threads/threadprog.c index 2dff169..47a5d18 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"); |