#include <conexus/server.h>
Inheritance diagram for Conexus::Server:
Public Member Functions | |
virtual void | start () |
virtual void | start (bool use_dispatcher) |
virtual void | stop () |
virtual void | set_responsiveness (long r) |
Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms). | |
virtual long | responsiveness () |
Returns the server responsiveness level. | |
virtual bool | is_running () |
virtual const std::string & | object_type () |
Protected Member Functions | |
virtual void | service_thread_main ()=0 |
Protected Attributes | |
Glib::Thread * | m_thread |
bool | m_terminate |
bool | m_running |
Glib::Dispatcher * | m_dispatcher |
bool | m_use_dispatcher |
timeval | m_timeval |
|
Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms). In general this refers to the timeout period of the select() call used internally. Each cycle of the server I/O thread acquires several mutex locks at the beginning of the cycle and releases them at the end of the cycle. This value shortens the cycle period, thereby making the server more responsive to commands at the cost of increasing overhead. |