CUBRID Engine  latest
thread_worker_pool.hpp File Reference
#include "thread_task.hpp"
#include "thread_waiter.hpp"
#include "perf_def.hpp"
#include "extensible_array.hpp"
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <list>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
#include <system_error>
#include <thread>
#include <cassert>
#include <cstring>
Include dependency graph for thread_worker_pool.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cubthread::worker_pool< Context >
 
class  cubthread::worker_pool< Context >::core
 
class  cubthread::worker_pool< Context >::core::worker
 

Namespaces

 cubthread
 

Functions

cubperf::statsetcubthread::wp_worker_statset_create (void)
 
void cubthread::wp_worker_statset_destroy (cubperf::statset &stats)
 
void cubthread::wp_worker_statset_time_and_increment (cubperf::statset &stats, cubperf::stat_id id)
 
void cubthread::wp_worker_statset_accumulate (const cubperf::statset &what, cubperf::stat_value *where)
 
std::size_t cubthread::wp_worker_statset_get_count (void)
 
const char * cubthread::wp_worker_statset_get_name (std::size_t stat_index)
 
std::size_t cubthread::system_core_count (void)
 
void cubthread::wp_handle_system_error (const char *message, const std::system_error &e)
 
template<typename Func >
void cubthread::wp_call_func_throwing_system_error (const char *message, Func &func)
 
void cubthread::wp_er_log_stats (const char *header, cubperf::stat_value *statsp)
 
bool cubthread::wp_is_thread_always_alive_forced ()
 
void cubthread::wp_set_force_thread_always_alive ()
 

Variables

static const cubperf::stat_id cubthread::Wpstat_start_thread = 0
 
static const cubperf::stat_id cubthread::Wpstat_create_context = 1
 
static const cubperf::stat_id cubthread::Wpstat_execute_task = 2
 
static const cubperf::stat_id cubthread::Wpstat_retire_task = 3
 
static const cubperf::stat_id cubthread::Wpstat_found_in_queue = 4
 
static const cubperf::stat_id cubthread::Wpstat_wakeup_with_task = 5
 
static const cubperf::stat_id cubthread::Wpstat_recycle_context = 6
 
static const cubperf::stat_id cubthread::Wpstat_retire_context = 7