On Tue, Sep 27, 2011 at 05:43:20PM +0200, ext Thiago Macieira wrote:
> On Tuesday, 27 de September de 2011 17:13:28 Oswald Buddenhagen wrote:
> > i wonder whether it would be possible to make a qthread subclass which
> > would be a generic sync wrapper for async apis, so one could dispose of
> > the waitFor*() in the i/o devices without requiring the users to write
> > lots of boilerplate code.
> 
> Making that class is easy.
> 
> Making the I/O classes work properly with being moved across threads (moving 
> their timers and socket notifiers) and deal with concurrent access to the I/O 
> buffers, that's not trivial at all.
> 
that would be easy if we require that prior to wrapping only setters can
be used and setters must have no internal side effects. of course, that
means that opening the device in a class-specific way needs to be done
in the thread already. doing *that* generically may turn out, uhm,
challenging. it may be more appropriate to have a QFooWaiter for every
relevant QFoo.
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to