winepulse.drv: Make timer thread time-critical.
Signed-off-by: Torge Matthies <openglfreak@googlemail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
18c12c6dbb
commit
b07c33cac4
|
@ -2045,8 +2045,10 @@ static HRESULT WINAPI AudioClient_Start(IAudioClient3 *iface)
|
||||||
This->started = TRUE;
|
This->started = TRUE;
|
||||||
This->just_started = TRUE;
|
This->just_started = TRUE;
|
||||||
|
|
||||||
if(!This->timer)
|
if(!This->timer) {
|
||||||
This->timer = CreateThread(NULL, 0, pulse_timer_cb, This, 0, NULL);
|
This->timer = CreateThread(NULL, 0, pulse_timer_cb, This, 0, NULL);
|
||||||
|
SetThreadPriority(This->timer, THREAD_PRIORITY_TIME_CRITICAL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(&pulse_lock);
|
pthread_mutex_unlock(&pulse_lock);
|
||||||
return hr;
|
return hr;
|
||||||
|
|
Loading…
Reference in New Issue