Fixing threading problems by reordering lines at random. It is the only true way.

pull/339/head
Jussi Pakkanen 9 years ago
parent d92e6c4595
commit aa1fc44aca
  1. 4
      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");

Loading…
Cancel
Save