[wx-dev] [ wxwindows-Patches-1715735 ] wxMainLoop for wxBase

Lukasz Michalski lm at zork.pl
Sat Jun 2 10:11:14 PDT 2007


On Saturday 02 of June 2007 11:51:26 Vadim Zeitlin wrote:
> On Fri, 1 Jun 2007 18:00:45 +0200 Lukasz Michalski <lm at zork.pl> wrote:
>
> LM> I created one gs_dispatcher instance as static member of
> wxFDIODispatcher LM> class and Get() method for it.
> LM>
> LM> For wxAppConsoleUnix this instance is initialized in Initialize() by
> trying LM> epoll first and falling back to select.
> LM>
> LM> Where should I put initialization of this global dispatcher for X11/DFB
> ports?
>
>  Why not do it in wxFDIODispatcher::Get() itself? Then it would be the same
> for all ports.

Ok, so first call to wxFDIODispatcher::Get will create best global dispatcher 
instance for given platform.

Thanks,
Łukasz




More information about the wx-dev mailing list