~SstCloseTest() {

        delete mListener;
        mSendService->join();
        mRecvService->join();
        delete mSendStrand;
        delete mRecvStrand;
        delete mSendService;
        delete mRecvService;

    }
Beispiel #2
0
    ~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;
    }