Problems with wxThread::Wait in a dll under windows
Marco Gubernati
marco.gubernati at erxa.it
Mon Dec 11 03:30:56 PST 2006
Probably is the most sensible solution to the problem!
----- Original Message -----
From: "Tim Kosse" <tim.kosse at gmx.de>
To: <wx-users at lists.wxwindows.org>
Sent: Sunday, December 10, 2006 10:48 AM
Subject: Re: Problems with wxThread::Wait in a dll under windows
> Marco Gubernati wrote:
> > the wxThread::Wait() executes the following peace of code
> >
> > do
> > { [...]
> >
> > result = ::MsgWaitForMultipleObjects
> > (
> > 1, // number of objects to wait for
> > &m_hThread, // the objects
> > false, // don't wait for all objects
> > INFINITE, // no timeout
> > QS_ALLINPUT|QS_ALLPOSTMESSAGE // return as soon
as
> > there are any events
> > );
> >
> I encountered the same problem, though in a GUI application. From a
> function called Wait, I expected true waiting semantics, while
> wxThread::Wait can do other stuff like processing the message loop.
>
> I've written a simple class which simulates joinable threads using
> detached threads and wxCondition. See
> http://filezilla-project.org/codesquid/threadex.tar.bz2
>
>
> Tim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
More information about the wx-users
mailing list