thread_pools icon indicating copy to clipboard operation
thread_pools copied to clipboard

🚀A header only thread pool library implemented with modern C++. Fast and easy to use.

Results 9 thread_pools issues
Sort by recently updated
recently updated
newest added

in TASK_USE_SMART_PTR(X) X is defined X;\ but in TASK_USE_RAW_PTR(X) X is defined X\ also in auto dynamic_pool::enqueue MAKE_TASK () has no argument and fails on Treat Warnings as Errors

anyone else getting these? shouldn't the methods in the library be inline?

Hi. I think you have data race with m_shutdown in dynamic_pool.hpp.

These fixes allow me to build the system.

Could you please specify project license? Is it possible to use it in closed source commercial application?

You can try Travis CI. But maybe a better choice is Actions now.

```c_cpp void dynamic_pool::make_worker() { auto thread = std::thread{[this]() { while (true) { std::unique_lock lock(m_queue_mu); m_cv.wait(lock, [this]() { return m_shutdown || !m_task_queue.empty() || m_idle_num > m_max_idle_size; }); if (m_shutdown && m_task_queue.empty())...

error 1: static_pool.hpp #include "util.h" => #include "util.hpp" error 2: dynamic_pool.hpp MAKE_TASK() => MAKE_TASK(0) Solving warning C4003 question: I see keywords such as "or"and". I currently use C++14. I can't...