mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
quartz/systemclock: Create the advise thread after the events it depends on.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3595c42a62
commit
2adc44df2e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue