calling MainMenuAction() from an other plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 28 March 2006 12:20, Uwe Hanke wrote:
> for example, in your background-thread:
> 
> // AutoOsd
> if (ShowMessage && !Skins.IsOpen() && !cOsd::IsOpen()) {
>    ShowMessage = false;
>    cRemote::CallPlugin("myShowMessage");
>    }

this looks racy to me. What if two different threads do this?
The OSD could open between the if () and ::CallPlugin

-- 
Wolfgang


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux