示例#1
0
	/// Stop the processing threads and quit.
	virtual void quit()
	{
		if (_pmodel == pm_pipeline)
		{
			_callback_thread.request_stop();
			_callback_thread.join();
		}
		if (_pmodel != pm_coro)
			AsyncSocket<f8String>::quit();
	}
示例#2
0
	/*! Wait till processing thead has finished.
		 \return 0 on success */
	int join()
	{
		f8_scoped_lock guard(_mutex);
		if (_started)
		{
			_started = false;
			return _thread.join();
		}

		return 0;
	}
示例#3
0
	/// Dtor.
	virtual ~ReliableClientSession ()
	{
		_thread.request_stop();
		_thread.join();
	}