Fixed some msvc code analysis warnings

This commit is contained in:
gabime
2019-08-18 18:28:13 +03:00
parent 7ea951613d
commit db1babab5e
8 changed files with 4908 additions and 9 deletions

View File

@@ -40,7 +40,8 @@ struct async_factory_impl
auto &registry_inst = details::registry::instance();
// create global thread pool if not already exists..
std::lock_guard<std::recursive_mutex> tp_lock(registry_inst.tp_mutex());
auto& mutex = registry_inst.tp_mutex();
std::lock_guard<std::recursive_mutex> tp_lock(mutex);
auto tp = registry_inst.get_tp();
if (tp == nullptr)
{