Skip to content
Snippets Groups Projects
Commit 2adc44df authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard
Browse files

quartz/systemclock: Create the advise thread after the events it depends on.

parent 3595c42a
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,9 @@ static void notify_thread(struct system_clock *clock)
{
if (!InterlockedCompareExchange(&clock->thread_created, TRUE, FALSE))
{
clock->thread = CreateThread(NULL, 0, SystemClockAdviseThread, clock, 0, NULL);
clock->notify_event = CreateEventW(NULL, FALSE, FALSE, NULL);
clock->stop_event = CreateEventW(NULL, TRUE, FALSE, NULL);
clock->thread = CreateThread(NULL, 0, SystemClockAdviseThread, clock, 0, NULL);
}
SetEvent(clock->notify_event);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment