Skip to content
Snippets Groups Projects
Commit 93830412 authored by rswindell's avatar rswindell
Browse files

output_semaphore is initialized before the output_thread is started on *nix builds.

parent 42b4b893
No related branches found
No related tags found
No related merge requests found
...@@ -1889,6 +1889,8 @@ void initdata(void) ...@@ -1889,6 +1889,8 @@ void initdata(void)
printf("\r\n\7Error %d creating output_event\r\n",GetLastError()); printf("\r\n\7Error %d creating output_event\r\n",GetLastError());
exit(1); exit(1);
} }
#else
sem_init(&output_sem,0,0);
#endif #endif
_beginthread(output_thread,0,NULL); _beginthread(output_thread,0,NULL);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment