~SstCloseTest() { delete mListener; mSendService->join(); mRecvService->join(); delete mSendStrand; delete mRecvStrand; delete mSendService; delete mRecvService; }
~SstTest() { { unique_mutex_lock lck(mMutex); for(std::vector<Stream*>::iterator i=mStreams.begin(),ie=mStreams.end();i!=ie;++i) { delete *i; } mStreams.resize(0); } delete mListener; // The other thread should finish up any outstanding handlers and stop mServicePool->join(); delete mServicePool; }