Home | History | Annotate | Download | only in asio

Lines Matching defs:handler

74  * associated handler. Handlers are invoked only by a thread that is currently
80 * If an exception is thrown from a handler, the exception is allowed to
210 * @li Uninvoked handler objects that were scheduled for deferred invocation
225 * complete. The corresponding handler objects are destroyed, and all
243 * of them to invoke a handler.
271 * of them to invoke a handler.
292 /// handler.
294 * The run_one() function blocks until one handler has been dispatched, or
308 /// handler.
310 * The run_one() function blocks until one handler has been dispatched, or
348 /// handler.
350 * The poll_one() function runs at most one handler that is ready to run,
360 /// handler.
362 * The poll_one() function runs at most one handler that is ready to run,
405 /// Request the io_service to invoke the given handler.
407 * This function is used to ask the io_service to execute the given handler.
409 * The io_service guarantees that the handler will only be called in a thread
411 * currently being invoked. The handler may be executed inside this function
414 * @param handler The handler to be called. The io_service will make
415 * a copy of the handler object as required. The function signature of the
416 * handler must be: @code void handler(); @endcode
420 * @li the handler's @c asio_handler_allocate function; or
422 * @li the handler's copy constructor
428 dispatch(ASIO_MOVE_ARG(CompletionHandler) handler);
430 /// Request the io_service to invoke the given handler and return immediately.
432 * This function is used to ask the io_service to execute the given handler,
433 * but without allowing the io_service to call the handler from inside this
436 * The io_service guarantees that the handler will only be called in a thread
440 * @param handler The handler to be called. The io_service will make
441 * a copy of the handler object as required. The function signature of the
442 * handler must be: @code void handler(); @endcode
446 * @li the handler's @c asio_handler_allocate function; or
448 * @li the handler's copy constructor
454 post(ASIO_MOVE_ARG(CompletionHandler) handler);
456 /// Create a new handler that automatically dispatches the wrapped handler
459 * This function is used to create a new handler function object that, when
460 * invoked, will automatically pass the wrapped handler to the io_service
463 * @param handler The handler to be wrapped. The io_service will make a copy
464 * of the handler object as required. The function signature of the handler
465 * must be: @code void handler(A1 a1, ... An an); @endcode
467 * @return A function object that, when invoked, passes the wrapped handler to
478 template <typename Handler>
479 detail::wrapped_handler<io_service&, Handler>
480 wrap(Handler handler);
505 * within a completion handler, provided no other thread is accessing the
603 * in a handler class. It is not assignable.
671 /// Destroy all user-defined handler objects owned by the service.