Advertisement

boost::asio序列11:调度器

阅读量:

scheduler在Linux系统中主要负责异步I/O操作所对应的Handler分配工作,其调度功能是通过采用epoll_reactor机制来实现的。

复制代码
 class scheduler

    
   : public execution_context_service_base<scheduler>,
    
     public thread_context
    
 {
    
 public:
    
   typedef scheduler_operation operation;
    
  
    
   // Constructor. Specifies the number of concurrent threads that are likely to
    
   // run the scheduler. If set to 1 certain optimisation are performed.
    
   BOOST_ASIO_DECL scheduler(boost::asio::execution_context& ctx,
    
       int concurrency_hint = 0, bool own_thread = true);
    
  
    
   // Destructor.

全部评论 (0)

还没有任何评论哟~