#include <round_robin.hpp>
|
std::unique_ptr< boost::asio::io_service::work > | work_ |
|
|
static boost::asio::io_service::id | id |
|
Definition at line 47 of file round_robin.hpp.
◆ service() [1/2]
boost::fibers::asio::round_robin::service::service |
( |
boost::asio::io_service & | io_svc | ) |
|
|
inline |
Definition at line 52 of file round_robin.hpp.
52 :
53 boost::asio::io_service::service( io_svc),
54 work_{
new boost::asio::io_service::work( io_svc) } {
55 io_svc.post([&io_svc](){
56
57
58 while ( ! io_svc.stopped() ) {
59 if ( boost::fibers::has_ready_fibers() ) {
60
61 while ( io_svc.poll() );
62
63 this_fiber::yield();
64 } else {
65
66
67 if ( ! io_svc.run_one() ) {
68 break;
69 }
70 }
71 }
72
73
74 });
75 }
std::unique_ptr< boost::asio::io_service::work > work_
◆ ~service()
virtual boost::fibers::asio::round_robin::service::~service |
( |
| ) |
|
|
inlinevirtual |
◆ service() [2/2]
boost::fibers::asio::round_robin::service::service |
( |
service const & | | ) |
|
|
delete |
◆ operator=()
service & boost::fibers::asio::round_robin::service::operator= |
( |
service const & | | ) |
|
|
delete |
◆ shutdown_service()
void boost::fibers::asio::round_robin::service::shutdown_service |
( |
| ) |
|
|
inlinefinaloverride |
◆ id
boost::asio::io_service::id boost::fibers::asio::round_robin::service::id |
|
static |
◆ work_
std::unique_ptr< boost::asio::io_service::work > boost::fibers::asio::round_robin::service::work_ |
The documentation for this struct was generated from the following file: