|
|
|
@ -90,6 +90,7 @@ inline thread_pool::thread_pool(size_t num_threads,
|
|
|
|
|
// if the weak pointer points to a delated handle, remove it
|
|
|
|
|
if(!handle ){
|
|
|
|
|
_loop_handles.erase(handle_it);
|
|
|
|
|
if( _loop_handles.empty() ==false)
|
|
|
|
|
_index = (_index) % _loop_handles.size();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|