bool expire_instances();
yazpp_1::GDU m_init_request;
yazpp_1::GDU m_init_response;
- boost::mutex m_mutex_backend_class;
- boost::condition m_cond_set_ready;
int m_sequence_top;
time_t m_backend_set_ttl;
time_t m_backend_expiry_ttl;
int m_no_succeeded;
int m_no_init;
public:
+ boost::mutex m_mutex_backend_class;
+ boost::condition m_cond_set_ready;
BackendClass(const yazpp_1::GDU &init_request,
int resultset_ttl,
int resultset_max,
{
// 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;
}