void Client::wait_on_list(list<Cond*>& ls)
{
Cond cond;
ls.push_back(&cond);
cond.Wait(client_lock);
ls.remove(&cond);
}
转载于:https://my.oschina.net/itfanr/blog/1807770
void Client::wait_on_list(list<Cond*>& ls)
{
Cond cond;
ls.push_back(&cond);
cond.Wait(client_lock);
ls.remove(&cond);
}
转载于:https://my.oschina.net/itfanr/blog/1807770