
24 Mar
2006
24 Mar
'06
8:28 a.m.
Olaf van der Spek wrote:
--- Vaclav Vesely <vaclav.vesely@email.cz> wrote:
I've written ASIO background_thread class which calls arbitrary functions in a background thread. If you find it useful, you can add it to examples. After some refining it may be even added to the ASIO library.
But is it network or even IO related? Wouldn't it be better to have a generic async/event driven design that's not tightly coupled with networking?
IMHO ASIO defines generic async design (demuxers) which is not coupled with networking. And in ASIO there already is not-IO ASIO object - deadline_timer. Maybe the library can be divided into general Async and specialized Async.Io. But it has been already accepted in this form. Regards, Vaclav