Discussion:
[asio-users] no io_service::wrap(f) ... why?
Amir Taaki
2012-04-26 13:45:23 UTC
Permalink
Hi!

Why is there only a strand::wrap(f) and not an io_service::wrap(f) in the API? That'd be a really useful thing to have.

Every so often you need to call a handler but want to have it dispatched to another io_service. Such a thing is possible using a wrapper and argument forwarding, but I'm just wondering why it was included for strand and not io_service.
Marat Abrarov
2012-04-26 13:58:55 UTC
Permalink
http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio/reference/io_service/wrap.html
?

Regards,
Marat Abrarov.
Amir Taaki
2012-04-26 15:50:58 UTC
Permalink
Oh... not sure why I missed that. Oops.

 
----- Original Message -----
From: Marat Abrarov <***@mail.ru>
To: 'Amir Taaki' <***@yahoo.com>; asio-***@lists.sourceforge.net
Cc:
Sent: Thursday, April 26, 2012 2:58 PM
Subject: RE: [asio-users] no io_service::wrap(f) ... why?

http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio/reference/io_service/wrap.html
?

Regards,
Marat Abrarov.

Loading...