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:
Torge Matthies 2021-03-06 02:27:13 +01:00 committed by Alexandre Julliard
parent 18c12c6dbb
commit b07c33cac4
1 changed files with 3 additions and 1 deletions

View File

@ -2045,8 +2045,10 @@ static HRESULT WINAPI AudioClient_Start(IAudioClient3 *iface)
This->started = TRUE;
This->just_started = TRUE;
if(!This->timer)
if(!This->timer) {
This->timer = CreateThread(NULL, 0, pulse_timer_cb, This, 0, NULL);
SetThreadPriority(This->timer, THREAD_PRIORITY_TIME_CRITICAL);
}
}
pthread_mutex_unlock(&pulse_lock);
return hr;