You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::thread::hardware_concurrency() may return 0. So when constructed as thread_pool(), thread_count may be initialised to 0. thread_count(thread_count_ > 1 ? thread_count_ : 1 may be safer.
The text was updated successfully, but these errors were encountered:
thread-pool/BS_thread_pool.hpp
Line 100 in 9d43f5d
std::thread::hardware_concurrency()
may return 0. So when constructed asthread_pool()
,thread_count
may be initialised to 0.thread_count(thread_count_ > 1 ? thread_count_ : 1
may be safer.The text was updated successfully, but these errors were encountered: