Module: wine Branch: master Commit: b07c33cac4538b06a276d4cf6cc85487d31041e5 URL: https://source.winehq.org/git/wine.git/?a=commit;h=b07c33cac4538b06a276d4cf6...
Author: Torge Matthies openglfreak@googlemail.com Date: Sat Mar 6 02:27:13 2021 +0100
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
---
dlls/winepulse.drv/mmdevdrv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c index 417067f0bf8..4609b2851ed 100644 --- a/dlls/winepulse.drv/mmdevdrv.c +++ b/dlls/winepulse.drv/mmdevdrv.c @@ -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;