Fixing threading problems by reordering lines at random. It is the only true way.
This commit is contained in:
parent
d92e6c4595
commit
aa1fc44aca
|
@ -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…
Reference in New Issue