irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods::thread_pool Class Reference

#include <thread_pool.hpp>

Public Member Functions

 thread_pool (int _size)
 
void join ()
 
void stop ()
 

Static Public Member Functions

template<typename Function >
static void dispatch (thread_pool &_pool, Function &&_func)
 
template<typename Function >
static void post (thread_pool &_pool, Function &&_func)
 
template<typename Function >
static void defer (thread_pool &_pool, Function &&_func)
 

Private Attributes

boost::asio::thread_pool pool_
 

Detailed Description

Definition at line 10 of file thread_pool.hpp.

Constructor & Destructor Documentation

◆ thread_pool()

irods::thread_pool::thread_pool ( int  _size)
inlineexplicit

Definition at line 13 of file thread_pool.hpp.

Member Function Documentation

◆ defer()

template<typename Function >
static void irods::thread_pool::defer ( thread_pool _pool,
Function &&  _func 
)
inlinestatic

Definition at line 41 of file thread_pool.hpp.

References pool_.

◆ dispatch()

template<typename Function >
static void irods::thread_pool::dispatch ( thread_pool _pool,
Function &&  _func 
)
inlinestatic

Definition at line 29 of file thread_pool.hpp.

References pool_.

◆ join()

void irods::thread_pool::join ( )
inline

Definition at line 18 of file thread_pool.hpp.

References pool_.

◆ post()

template<typename Function >
static void irods::thread_pool::post ( thread_pool _pool,
Function &&  _func 
)
inlinestatic

Definition at line 35 of file thread_pool.hpp.

References pool_.

Referenced by irods::query_processor< ConnectionType >::execute().

◆ stop()

void irods::thread_pool::stop ( )
inline

Definition at line 23 of file thread_pool.hpp.

References pool_.

Referenced by irods.controller.IrodsController::restart().

Member Data Documentation

◆ pool_

boost::asio::thread_pool irods::thread_pool::pool_
private

Definition at line 47 of file thread_pool.hpp.

Referenced by defer(), dispatch(), join(), post(), and stop().


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