/[LeafOK_CVS]/innwebd/service.cpp
ViewVC logotype

Annotation of /innwebd/service.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Sat Jul 3 15:10:23 2004 UTC (21 years, 8 months ago) by sysadm
Branch: MAIN
Changes since 1.1: +4 -0 lines
Content type: text/x-c++src
no message

1 sysadm 1.1 /*******************************************************/
2     /* */
3     /* LeafOK Innd */
4     /* Copyright (C) LeafOK.com, 2003-2004 */
5     /* */
6     /* Programmed by Leaf */
7     /* E-mail:leaf@leafok.com QQ:6049044 */
8     /* */
9     /* http://bbs.leafok.com */
10     /* http://bbs.leafok.net */
11     /* http://bbs.fenglin.info */
12     /* */
13     /*******************************************************/
14    
15     #include "StdAfx.h"
16     #include ".\service.h"
17    
18     using namespace std;
19    
20     service::service(void)
21     :CNTService("Innd Service")
22     {
23     }
24    
25     service::~service(void)
26     {
27     }
28    
29     void service::Run()
30     {
31     this->ctrld.StartupDelay();
32    
33 sysadm 1.2 this->ctrld.InitThreadPool();
34    
35 sysadm 1.1 if (this->ctrld.begin() == 0)
36     {
37     syslog << logfile::log_head << "Begin CONTROL ... OK" << endl;
38     }
39     else
40     {
41     syslog << logfile::log_head << "Begin CONTROL ... Failed" << endl;
42     }
43    
44     this->ctrld.StartupChild();
45    
46     while (this->m_bIsRunning && this->ctrld.IsRunning())
47     {
48     Sleep(100);
49     }
50    
51     this->ctrld.ShutdownChild();
52    
53     if (this->ctrld.end() == 0)
54     {
55     syslog << logfile::log_head << "End CONTROL ... OK" << endl;
56     }
57     else
58     {
59     syslog << logfile::log_head << "End CONTROL ... Failed" << endl;
60     }
61 sysadm 1.2
62     this->ctrld.CleanupThreadPool();
63 sysadm 1.1 }

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1