Re: Re: Thread-safe GUI operations

"Robert Roebling" <[email protected]> Wed, 22 Dec 2004 23:07:43 +0100
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
nummish wrote:

> So after looking further into it, I realized there were
> Utils.MutexGuiEnter() and Utils.MutexGuiLeave() functions available,
> and these seem to be working fine. If there's any reason I shouldn't
> be using these, can someone let me know?

You shouldn't use these as they mostly don't work - apart from a
few test cases. Do you wxPostEvent() or EvtHandler.AddPendingEvent()

  Robert

> 
> 
> On Mon, 20 Dec 2004 20:15:02 -0500, nummish <[email protected]> wrote:
> > I have an application that spawns threads while several network
> > connections are made in the background.
> > 
> > To ensure thread-safe gui updates (such as the status bar, etc), is
> > there a specific way to call the main GUI thread that doesn't involve
> > EvtHandler.AddPendingEvent() as this isn't listed in the wx.net API
> > reference?
> > 
> > --
> > Bigger 1:23
> > This address if for mailing list traffic only.
> > Please direct non-list correspondence to 0x90.org
> > 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/