コード例 #1
0
ファイル: connection.hpp プロジェクト: zouf/fix8
	/// Start the processing threads.
	virtual void start()
	{
		_socket_error = false;
		AsyncSocket<f8String>::start();
		if (_pipelined)
		{
			if (_callback_thread.start())
				_socket_error = true;
		}
	}
コード例 #2
0
ファイル: connection.hpp プロジェクト: ervinbosenbacher/fix8
	/// Start the processing threads.
	virtual void start()
	{
		_socket_error = false;
		if (_pmodel != pm_coro)
			AsyncSocket<f8String>::start();
		if (_pmodel == pm_pipeline)
		{
			if (_callback_thread.start())
				_socket_error = true;
		}
	}
コード例 #3
0
ファイル: connection.hpp プロジェクト: ervinbosenbacher/fix8
	/*! Wait till processing thead has finished.
	    \return 0 on success */
	int join() { return _pmodel == pm_pipeline ? _thread.join() : -1; }
コード例 #4
0
ファイル: connection.hpp プロジェクト: ervinbosenbacher/fix8
	/// Stop the processing thread and quit.
	virtual void quit() { _thread.kill(1); }
コード例 #5
0
ファイル: connection.hpp プロジェクト: ervinbosenbacher/fix8
	/// Start the processing thread.
	virtual void start() { _thread.start(); }
コード例 #6
0
ファイル: connection.hpp プロジェクト: ervinbosenbacher/fix8
	/// Stop the processing threads and quit.
	virtual void quit()
	{
		if (_pmodel == pm_pipeline)
			_callback_thread.kill(1);
		AsyncSocket<f8String>::quit();
	}
コード例 #7
0
ファイル: connection.hpp プロジェクト: jzsu/fix8
	/*! Wait till processing thead has finished.
	    \return 0 on success */
	int join() { return _thread.join(); }
コード例 #8
0
ファイル: logger.hpp プロジェクト: douwen2000/fix8
	/// Stop the logging thread.
	void stop() {  _stopping = true; send(std::string()); _thread.join(); }
コード例 #9
0
ファイル: logger.hpp プロジェクト: douwen2000/fix8
	/// Kill the logging thread.
	void kill() { _thread.kill(0); }
コード例 #10
0
ファイル: logger.hpp プロジェクト: douwen2000/fix8
	/*! Ctor.
	    \param flags ebitset flags */
	Logger(const LogFlags flags) : _thread(ref(*this)), _flags(flags), _ofs(), _lines(), _sequence(), _osequence()
	{
		_stopping = false;
		_thread.start();
	}
コード例 #11
0
ファイル: timer.hpp プロジェクト: 6qat/fix8
	/// Start the timer thread.
	void start() { _thread.start(); }
コード例 #12
0
ファイル: timer.hpp プロジェクト: 6qat/fix8
	/// Join timer thread. Wait till exits.
   void join() { _thread.join(); }
コード例 #13
0
ファイル: timer.hpp プロジェクト: 6qat/fix8
	/*! Kill timer thread.
	  \param sig signal to kill with */
   void kill(const int sig=SIGKILL) { _thread.kill(sig); }
コード例 #14
0
ファイル: connection.hpp プロジェクト: zouf/fix8
	/*! Wait till processing thead has finished.
	    \return 0 on success */
	int join() { return _pipelined ? _thread.join() : -1; }