[pulseaudio-discuss] [Patch] Infinite loop in mainloop

Arun Raghavan arun.raghavan at collabora.co.uk
Sun Feb 27 22:41:21 PST 2011


Hi Marcel,

On Sat, 2011-01-01 at 16:50 +0100, Marcel wrote:
> I am porting pulseaudio to OS/2. During this I run into trouble with the 
> mainloop occasionally eating up all CPU resources. It turned out to be 
> an inconsistency in the internal state of the mainloop. 
> m->wakeup_requested was 0 while the wakup pipe was ready. In fact most 
> probably there is still a race condition somewhere in the code.
> 
> However, the following patch will help to recover from this 
> inconsistencies more gracefully, especially if the mainloop is running 
> at high priority.

This came up in the meeting last Thursday [1]. Could you provide more
context on this? It does appear that this is some sort of OS/2 bug
rather than a bug in PA.

If no other information is available, then I think this is okay to go in
with an OS/2-specific conditional.

Cheers,
Arun

[1]
http://colin.guthr.ie/meetings/pulseaudio-meeting/2011/pulseaudio-meeting.2011-02-24-21.02.log.html#l-379




More information about the pulseaudio-discuss mailing list