|
spdlog
|
Definition at line 81 of file thread_pool.h.
#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, std::function< void()> on_thread_start) | |
| 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, const 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 () |
| size_t | queue_size () |
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 84 of file thread_pool.h.
Definition at line 85 of file thread_pool.h.
| SPDLOG_INLINE spdlog::details::thread_pool::thread_pool | ( | size_t | q_max_items, |
| size_t | threads_n, | ||
| std::function< void()> | on_thread_start | ||
| ) |
Definition at line 16 of file thread_pool-inl.h.
| SPDLOG_INLINE spdlog::details::thread_pool::thread_pool | ( | size_t | q_max_items, |
| size_t | threads_n | ||
| ) |
Definition at line 33 of file thread_pool-inl.h.
| SPDLOG_INLINE spdlog::details::thread_pool::~thread_pool | ( | ) |
Definition at line 38 of file thread_pool-inl.h.
|
delete |
|
delete |
| size_t SPDLOG_INLINE spdlog::details::thread_pool::overrun_counter | ( | ) |
Definition at line 66 of file thread_pool-inl.h.
|
private |
Definition at line 76 of file thread_pool-inl.h.
| void SPDLOG_INLINE spdlog::details::thread_pool::post_flush | ( | async_logger_ptr && | worker_ptr, |
| async_overflow_policy | overflow_policy | ||
| ) |
Definition at line 61 of file thread_pool-inl.h.
| void SPDLOG_INLINE spdlog::details::thread_pool::post_log | ( | async_logger_ptr && | worker_ptr, |
| const details::log_msg & | msg, | ||
| async_overflow_policy | overflow_policy | ||
| ) |
Definition at line 55 of file thread_pool-inl.h.
|
private |
Definition at line 96 of file thread_pool-inl.h.
| size_t SPDLOG_INLINE spdlog::details::thread_pool::queue_size | ( | ) |
Definition at line 71 of file thread_pool-inl.h.
|
private |
Definition at line 88 of file thread_pool-inl.h.
|
private |
Definition at line 102 of file thread_pool.h.
|
private |
Definition at line 104 of file thread_pool.h.