Beispiel #1
0
bool SessionInitializer::tearDownSD(qi::SessionPtr session)
{
  if (session->close().wait(1000) != qi::FutureState_FinishedWithValue)
    return false;

  return true;
}
Beispiel #2
0
bool SessionInitializer::tearDownNightmare(qi::SessionPtr session)
{
  if (_trafficGenerator)
    _trafficGenerator->stopTraffic();

  delete _populationGenerator;
  delete _trafficGenerator;

  if (session->close().wait(1000) != qi::FutureState_FinishedWithValue)
    return false;

  return true;
}
Beispiel #3
0
static void session_close(qi::SessionPtr s, qi::Atomic<int>* counter)
{
  s->close();
  ++(*counter);
}