Home | History | Annotate | Download | only in asio

Lines Matching refs:work

110  * @par Stopping the io_service from running out of work
113 * returning when there is no more work to do. For example, the io_service may
116 * creating an object of type asio::io_service::work:
119 * asio::io_service::work work(io_service);
128 * be allowed to finish normally, the work object may be explicitly destroyed.
131 * auto_ptr<asio::io_service::work> work(
132 * new asio::io_service::work(io_service));
134 * work.reset(); // Allow run() to exit. @endcode
180 class work;
181 friend class work;
237 * The run() function blocks until all work has finished and there are no
265 * The run() function blocks until all work has finished and there are no
384 * of work. When an io_service object is stopped, calls to run(), run_one(),
397 * being stopped or running out of work. After a call to reset(), the
595 /// Class to inform the io_service when it has work to do.
597 * The work class is used to inform the io_service when work starts and
599 * exit while work is underway, and that it does exit when there is no
600 * unfinished work remaining.
602 * The work class is copy-constructible so that it may be used as a data member
605 class io_service::work
608 /// Constructor notifies the io_service that work is starting.
610 * The constructor is used to inform the io_service that some work has begun.
612 * while the work is underway.
614 explicit work(asio::io_service& io_service);
616 /// Copy constructor notifies the io_service that work is starting.
618 * The constructor is used to inform the io_service that some work has begun.
620 * while the work is underway.
622 work(const work& other);
624 /// Destructor notifies the io_service that the work is complete.
626 * The destructor is used to inform the io_service that some work has
627 * finished. Once the count of unfinished work reaches zero, the io_service
630 ~work();
632 /// Get the io_service associated with the work.
637 void operator=(const work& other);