#include <thread_pool.h>
Public Types | |
using | item_type = async_msg |
using | q_type = details::mpmc_blocking_queue< item_type > |
Public Member Functions | |
thread_pool (size_t q_max_items, size_t threads_n) | |
~thread_pool () | |
thread_pool (const thread_pool &)=delete | |
thread_pool & | operator= (thread_pool &&)=delete |
void | post_log (async_logger_ptr &&worker_ptr, details::log_msg &msg, async_overflow_policy overflow_policy) |
void | post_flush (async_logger_ptr &&worker_ptr, async_overflow_policy overflow_policy) |
size_t | overrun_counter () |
Private Member Functions | |
void | post_async_msg_ (async_msg &&new_msg, async_overflow_policy overflow_policy) |
void | worker_loop_ () |
bool | process_next_msg_ () |
Private Attributes | |
q_type | q_ |
std::vector< std::thread > | threads_ |
Definition at line 118 of file thread_pool.h.
Definition at line 121 of file thread_pool.h.
Definition at line 122 of file thread_pool.h.
|
inline |
Definition at line 124 of file thread_pool.h.
|
inline |
Definition at line 141 of file thread_pool.h.
|
delete |
|
delete |
|
inline |
Definition at line 174 of file thread_pool.h.
|
inlineprivate |
Definition at line 184 of file thread_pool.h.
|
inline |
Definition at line 169 of file thread_pool.h.
|
inline |
Definition at line 163 of file thread_pool.h.
|
inlineprivate |
Definition at line 204 of file thread_pool.h.
|
inlineprivate |
Definition at line 196 of file thread_pool.h.
|
private |
Definition at line 180 of file thread_pool.h.
|
private |
Definition at line 182 of file thread_pool.h.