All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
asio::detail::task_io_service< Task > Class Template Reference

#include <task_io_service.hpp>

Inheritance diagram for asio::detail::task_io_service< Task >:
Inheritance graph
[legend]

List of all members.

Classes

class  handler_cleanup
struct  idle_thread_info
class  task_cleanup
class  task_handler

Public Types

typedef indirect_handler_queue handler_queue

Public Member Functions

template<typename Handler >
void dispatch (Handler handler)
template<typename Handler >
void dispatch (Handler handler)
void init (size_t)
void init (size_t)
size_t poll (asio::error_code &ec)
size_t poll (asio::error_code &ec)
size_t poll_one (asio::error_code &ec)
size_t poll_one (asio::error_code &ec)
template<typename Handler >
void post (Handler handler)
template<typename Handler >
void post (Handler handler)
void reset ()
void reset ()
size_t run (asio::error_code &ec)
size_t run (asio::error_code &ec)
size_t run_one (asio::error_code &ec)
size_t run_one (asio::error_code &ec)
void shutdown_service ()
 Destroy all user-defined handler objects owned by the service.
void shutdown_service ()
 Destroy all user-defined handler objects owned by the service.
void stop ()
void stop ()
 task_io_service (asio::io_service &io_service)
 task_io_service (asio::io_service &io_service)
void work_finished ()
void work_finished ()
void work_started ()
void work_started ()

Private Member Functions

size_t do_one (asio::detail::mutex::scoped_lock &lock, idle_thread_info *this_idle_thread, asio::error_code &ec)
size_t do_one (idle_thread_info *this_idle_thread, asio::error_code &ec)
void interrupt_all_idle_threads (asio::detail::mutex::scoped_lock &lock)
void interrupt_all_idle_threads (asio::detail::mutex::scoped_lock &back_lock)
bool interrupt_one_idle_thread (asio::detail::mutex::scoped_lock &lock)
void interrupt_one_idle_thread (asio::detail::mutex::scoped_lock &back_lock)
void stop_all_threads (asio::detail::mutex::scoped_lock &lock)

Private Attributes

idle_thread_infoback_first_idle_thread_
asio::detail::mutex back_mutex_
bool back_shutdown_
bool back_stopped_
idle_thread_infoback_task_thread_
idle_thread_infofirst_idle_thread_
asio::detail::mutex front_mutex_
bool front_stopped_
handler_queue handler_queue_
asio::detail::mutex mutex_
int outstanding_work_
boost::detail::atomic_count outstanding_work_
bool shutdown_
bool stopped_
Task & task_
asio::detail::task_io_service::task_handler task_handler_
bool task_interrupted_

Friends

class handler_cleanup
class task_cleanup

Detailed Description

template<typename Task>
class asio::detail::task_io_service< Task >

Definition at line 39 of file task_io_service.hpp.


Member Typedef Documentation

template<typename Task >
typedef indirect_handler_queue asio::detail::task_io_service< Task >::handler_queue

Definition at line 45 of file task_io_service_2lock.hpp.


Constructor & Destructor Documentation

template<typename Task >
asio::detail::task_io_service< Task >::task_io_service ( asio::io_service io_service) [inline]

Definition at line 44 of file task_io_service.hpp.

template<typename Task >
asio::detail::task_io_service< Task >::task_io_service ( asio::io_service io_service) [inline]

Definition at line 48 of file task_io_service_2lock.hpp.


Member Function Documentation

template<typename Task >
template<typename Handler >
void asio::detail::task_io_service< Task >::dispatch ( Handler  handler) [inline]

Definition at line 166 of file task_io_service.hpp.

template<typename Task >
template<typename Handler >
void asio::detail::task_io_service< Task >::dispatch ( Handler  handler) [inline]

Definition at line 195 of file task_io_service_2lock.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::do_one ( asio::detail::mutex::scoped_lock lock,
idle_thread_info this_idle_thread,
asio::error_code ec 
) [inline, private]

Definition at line 208 of file task_io_service.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::do_one ( idle_thread_info this_idle_thread,
asio::error_code ec 
) [inline, private]

Definition at line 230 of file task_io_service_2lock.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::init ( size_t  ) [inline]

Definition at line 57 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::init ( size_t  ) [inline]

Definition at line 63 of file task_io_service_2lock.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::interrupt_all_idle_threads ( asio::detail::mutex::scoped_lock lock) [inline, private]

Definition at line 312 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::interrupt_all_idle_threads ( asio::detail::mutex::scoped_lock back_lock) [inline, private]

Definition at line 352 of file task_io_service_2lock.hpp.

template<typename Task >
bool asio::detail::task_io_service< Task >::interrupt_one_idle_thread ( asio::detail::mutex::scoped_lock lock) [inline, private]

Definition at line 297 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::interrupt_one_idle_thread ( asio::detail::mutex::scoped_lock back_lock) [inline, private]

Definition at line 334 of file task_io_service_2lock.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::poll ( asio::error_code ec) [inline]

Definition at line 112 of file task_io_service.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::poll ( asio::error_code ec) [inline]

Definition at line 124 of file task_io_service_2lock.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::poll_one ( asio::error_code ec) [inline]

Definition at line 126 of file task_io_service.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::poll_one ( asio::error_code ec) [inline]

Definition at line 143 of file task_io_service_2lock.hpp.

template<typename Task >
template<typename Handler >
void asio::detail::task_io_service< Task >::post ( Handler  handler) [inline]

Definition at line 176 of file task_io_service.hpp.

template<typename Task >
template<typename Handler >
void asio::detail::task_io_service< Task >::post ( Handler  handler) [inline]

Definition at line 205 of file task_io_service_2lock.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::reset ( ) [inline]

Definition at line 143 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::reset ( ) [inline]

Definition at line 170 of file task_io_service_2lock.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::run ( asio::error_code ec) [inline]

Definition at line 82 of file task_io_service.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::run ( asio::error_code ec) [inline]

Definition at line 84 of file task_io_service_2lock.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::run_one ( asio::error_code ec) [inline]

Definition at line 99 of file task_io_service.hpp.

template<typename Task >
size_t asio::detail::task_io_service< Task >::run_one ( asio::error_code ec) [inline]

Definition at line 106 of file task_io_service_2lock.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::shutdown_service ( ) [inline, virtual]

Destroy all user-defined handler objects owned by the service.

Implements asio::io_service::service.

Definition at line 62 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::shutdown_service ( ) [inline, virtual]

Destroy all user-defined handler objects owned by the service.

Implements asio::io_service::service.

Definition at line 68 of file task_io_service_2lock.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::stop ( ) [inline]

Definition at line 136 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::stop ( ) [inline]

Definition at line 158 of file task_io_service_2lock.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::stop_all_threads ( asio::detail::mutex::scoped_lock lock) [inline, private]

Definition at line 283 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::work_finished ( ) [inline]

Definition at line 157 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::work_finished ( ) [inline]

Definition at line 187 of file task_io_service_2lock.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::work_started ( ) [inline]

Definition at line 150 of file task_io_service.hpp.

template<typename Task >
void asio::detail::task_io_service< Task >::work_started ( ) [inline]

Definition at line 181 of file task_io_service_2lock.hpp.


Friends And Related Function Documentation

template<typename Task >
friend class handler_cleanup [friend]

Definition at line 351 of file task_io_service.hpp.

template<typename Task >
task_cleanup [friend]

Definition at line 325 of file task_io_service.hpp.


Member Data Documentation

template<typename Task >
idle_thread_info* asio::detail::task_io_service< Task >::back_first_idle_thread_ [private]

Definition at line 451 of file task_io_service_2lock.hpp.

template<typename Task >
asio::detail::mutex asio::detail::task_io_service< Task >::back_mutex_ [private]

Definition at line 414 of file task_io_service_2lock.hpp.

template<typename Task >
bool asio::detail::task_io_service< Task >::back_shutdown_ [private]

Definition at line 441 of file task_io_service_2lock.hpp.

template<typename Task >
bool asio::detail::task_io_service< Task >::back_stopped_ [private]

Definition at line 438 of file task_io_service_2lock.hpp.

template<typename Task >
idle_thread_info* asio::detail::task_io_service< Task >::back_task_thread_ [private]

Definition at line 454 of file task_io_service_2lock.hpp.

template<typename Task >
idle_thread_info* asio::detail::task_io_service< Task >::first_idle_thread_ [private]

Definition at line 415 of file task_io_service.hpp.

template<typename Task >
asio::detail::mutex asio::detail::task_io_service< Task >::front_mutex_ [private]

Definition at line 413 of file task_io_service_2lock.hpp.

template<typename Task >
bool asio::detail::task_io_service< Task >::front_stopped_ [private]

Definition at line 437 of file task_io_service_2lock.hpp.

template<typename Task >
handler_queue asio::detail::task_io_service< Task >::handler_queue_ [private]

Definition at line 399 of file task_io_service.hpp.

template<typename Task >
asio::detail::mutex asio::detail::task_io_service< Task >::mutex_ [private]

Definition at line 376 of file task_io_service.hpp.

template<typename Task >
int asio::detail::task_io_service< Task >::outstanding_work_ [private]

Definition at line 396 of file task_io_service.hpp.

template<typename Task >
boost::detail::atomic_count asio::detail::task_io_service< Task >::outstanding_work_ [private]

Definition at line 431 of file task_io_service_2lock.hpp.

template<typename Task >
bool asio::detail::task_io_service< Task >::shutdown_ [private]

Definition at line 405 of file task_io_service.hpp.

template<typename Task >
bool asio::detail::task_io_service< Task >::stopped_ [private]

Definition at line 402 of file task_io_service.hpp.

template<typename Task >
Task & asio::detail::task_io_service< Task >::task_ [private]

Definition at line 379 of file task_io_service.hpp.

template<typename Task >
bool asio::detail::task_io_service< Task >::task_interrupted_ [private]

Definition at line 393 of file task_io_service.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41