{
// first for first one to finish
while (!bc->m_no_failed && !bc->m_no_succeeded && bc->m_no_init)
- bc->m_cond_set_ready.wait(bc->m_mutex_backend_class);
+ {
+ bc->m_cond_set_ready.wait(lock);
+ }
}
}
if (create_first_one)
{
if ((*it)->m_in_use)
{
- bc->m_cond_set_ready.wait(
- bc->m_mutex_backend_class);
+ bc->m_cond_set_ready.wait(lock);
restart = true;
break;
}