[Bug 47458] New: Sleeping while pthreads mutex held from the driver code in winepulse-PulseAudio_Support

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Jul 5 02:00:38 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=47458

            Bug ID: 47458
           Summary: Sleeping while pthreads mutex held from the driver
                    code in winepulse-PulseAudio_Support
           Product: Wine-staging
           Version: unspecified
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: bill.huey at gmail.com
                CC: leslie_alistair at hotmail.com, z.figura12 at gmail.com
      Distribution: ---

The SetEvent call in the function pulse_timer_cb() sleeps, calls into the
wineserver, while a pthread mutex is held. This can cause long delays in
releasing the "pulse_lock" mutex, anywhere from 1-2ms to 90ms that I can see
with my custom instrumentation.

It potentially can cause dropouts and other issues with audio handling. It
seems to be in the main core audio processing loop.

The general practice here is to avoid sleeping operations within critical
sections.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list