Clementine
Classes | Public Types | Public Member Functions | Friends | List of all members
asio::detail::scheduler Class Reference
Inheritance diagram for asio::detail::scheduler:
Inheritance graph
[legend]
Collaboration diagram for asio::detail::scheduler:
Collaboration graph
[legend]

Classes

struct  task_cleanup
 
class  thread_function
 
struct  work_cleanup
 

Public Types

typedef scheduler_operation operation
 
- Public Types inherited from asio::detail::thread_context
typedef call_stack< thread_context, thread_info_basethread_call_stack
 

Public Member Functions

ASIO_DECL scheduler (asio::execution_context &ctx, int concurrency_hint=0, bool own_thread=true)
 
ASIO_DECL void shutdown ()
 Destroy all user-defined handler objects owned by the service.
 
ASIO_DECL void init_task ()
 
ASIO_DECL std::size_t run (asio::error_code &ec)
 
ASIO_DECL std::size_t run_one (asio::error_code &ec)
 
ASIO_DECL std::size_t wait_one (long usec, asio::error_code &ec)
 
ASIO_DECL std::size_t poll (asio::error_code &ec)
 
ASIO_DECL std::size_t poll_one (asio::error_code &ec)
 
ASIO_DECL void stop ()
 
ASIO_DECL bool stopped () const
 
ASIO_DECL void restart ()
 
void work_started ()
 
ASIO_DECL void compensating_work_started ()
 
void work_finished ()
 
bool can_dispatch ()
 
ASIO_DECL void capture_current_exception ()
 Capture the current exception so it can be rethrown from a run function.
 
ASIO_DECL void post_immediate_completion (operation *op, bool is_continuation)
 
ASIO_DECL void post_immediate_completions (std::size_t n, op_queue< operation > &ops, bool is_continuation)
 
ASIO_DECL void post_deferred_completion (operation *op)
 
ASIO_DECL void post_deferred_completions (op_queue< operation > &ops)
 
ASIO_DECL void do_dispatch (operation *op)
 
ASIO_DECL void abandon_operations (op_queue< operation > &ops)
 
int concurrency_hint () const
 
- Public Member Functions inherited from asio::detail::execution_context_service_base< scheduler >
 execution_context_service_base (execution_context &e)
 
- Public Member Functions inherited from asio::execution_context::service
execution_contextcontext ()
 Get the context object that owns the service.
 

Friends

class thread_function
 
struct task_cleanup
 
struct work_cleanup
 

Additional Inherited Members

- Static Public Attributes inherited from asio::detail::execution_context_service_base< scheduler >
static service_id< schedulerid
 
- Protected Member Functions inherited from asio::execution_context::service
ASIO_DECL service (execution_context &owner)
 Constructor. More...
 
virtual ASIO_DECL ~service ()
 Destructor.
 

The documentation for this class was generated from the following files: