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
It is unsafe to use raw threadpool references everywhere. Instead, use std::shared_ptr.
The actual threadpool constructor can be hidden and only usable by a wrapper class that stores a shared_ptr of the threadpool. Then overload operator*/operator-> to dereference to the inner threadpool.
The text was updated successfully, but these errors were encountered:
It is unsafe to use raw threadpool references everywhere. Instead, use
std::shared_ptr
.The actual threadpool constructor can be hidden and only usable by a wrapper class that stores a shared_ptr of the threadpool. Then overload
operator*
/operator->
to dereference to the inner threadpool.The text was updated successfully, but these errors were encountered: