#include <service.h>
Public Member Functions | |
| CL_Service (const CL_String &service_name) | |
| Construction:. | |
| ~CL_Service () | |
| int | main (int argc, char **argv) |
| Operations:. | |
Public Attributes | |
| CL_Event | stop_event |
| Attributes:. | |
| CL_Event | reload_event |
| CL_String | service_name |
Protected Member Functions | |
| virtual void | service_run (const std::vector< CL_String > &args)=0 |
Private Member Functions | |
| void | service_thread_main (std::vector< CL_String > args) |
| Implementation:. | |
Static Private Member Functions | |
| static void | sig_term (int signal_code) |
| static void | sig_hup (int signal_code) |
Static Private Attributes | |
| static CL_Service * | instance = 0 |
|
|
Construction:.
Definition at line 43 of file service.cpp. |
|
|
Definition at line 51 of file service.cpp. References instance. |
|
||||||||||||
|
Operations:.
Definition at line 62 of file service.cpp. References CL_File::close(), CL_StringHelp::int_to_local8(), CL_Thread::join(), CL_Exception::message, service_name, service_run(), service_thread_main(), sig_hup(), sig_term(), CL_Thread::start(), stop_event, TEXT, CL_Event::wait(), and CL_File::write(). |
|
|
Referenced by main(), and service_thread_main(). |
|
|
Implementation:.
Definition at line 230 of file service.cpp. References service_run(). Referenced by main(). |
|
|
Definition at line 241 of file service.cpp. References instance, reload_event, and CL_Event::set(). Referenced by main(). |
|
|
Definition at line 235 of file service.cpp. References instance, CL_Event::set(), and stop_event. Referenced by main(). |
|
|
Definition at line 248 of file service.cpp. Referenced by CL_Service(), sig_hup(), sig_term(), and ~CL_Service(). |
|
|
Definition at line 46 of file service.h. Referenced by sig_hup(). |
|
|
Definition at line 48 of file service.h. Referenced by main(). |
|
|
Attributes:.
Definition at line 44 of file service.h. Referenced by main(), and sig_term(). |
1.4.1