Update async.h

This commit is contained in:
Gabi Melman 2019-08-18 20:16:52 +03:00 committed by GitHub
parent db1babab5e
commit 76aa1059cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ struct async_factory_impl
auto &registry_inst = details::registry::instance();
// create global thread pool if not already exists..
auto& mutex = 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)