Skip to content

Class cubthread::worker_pool::core

ClassList > cubthread > worker_pool > core

  • #include <thread_worker_pool.hpp>

Inherited by the following classes: cubthread::worker_pool_impl::core_impl

Classes

Type Name
class worker

Public Functions

Type Name
virtual void execute_task (task_type * task_p, bool is_temp) = 0
entry_manager & get_entry_manager (void) const
worker_pool * get_parent_pool (void) const
virtual void get_stats (cubperf::stat_value * stats_out) const = 0
virtual std::size_t get_worker_count (void) const = 0
virtual void initialize (std::size_t worker_count) = 0
void set_parent_pool (worker_pool & parent)
virtual bool stop_execution (void) = 0
virtual void warmup (void) = 0
virtual ~core (void) = default

Protected Attributes

Type Name
worker_pool * m_parent_pool
bool m_pool_threads

Protected Functions

Type Name
core (bool pool_threads)

Public Functions Documentation

function execute_task

virtual void cubthread::worker_pool::core::execute_task (
    task_type * task_p,
    bool is_temp
) = 0

function get_entry_manager

inline entry_manager & cubthread::worker_pool::core::get_entry_manager (
    void
) const

function get_parent_pool

inline worker_pool * cubthread::worker_pool::core::get_parent_pool (
    void
) const

function get_stats

virtual void cubthread::worker_pool::core::get_stats (
    cubperf::stat_value * stats_out
) const = 0

function get_worker_count

virtual std::size_t cubthread::worker_pool::core::get_worker_count (
    void
) const = 0

function initialize

virtual void cubthread::worker_pool::core::initialize (
    std::size_t worker_count
) = 0

function set_parent_pool

inline void cubthread::worker_pool::core::set_parent_pool (
    worker_pool & parent
) 

function stop_execution

virtual bool cubthread::worker_pool::core::stop_execution (
    void
) = 0

function warmup

virtual void cubthread::worker_pool::core::warmup (
    void
) = 0

function ~core

virtual cubthread::worker_pool::core::~core (
    void
) = default

Protected Attributes Documentation

variable m_parent_pool

worker_pool* cubthread::worker_pool::core::m_parent_pool;

variable m_pool_threads

bool cubthread::worker_pool::core::m_pool_threads;

Protected Functions Documentation

function core

inline cubthread::worker_pool::core::core (
    bool pool_threads
) 


The documentation for this class was generated from the following file cubrid/src/thread/thread_worker_pool.hpp