MCPcopy Create free account
hub / github.com/acl-dev/acl / run_daemon

Method run_daemon

lib_acl_cpp/src/master/master_aio.cpp:33–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31static bool __has_called = false;
32
33void master_aio::run_daemon(int argc, char** argv)
34{
35#ifndef ACL_WINDOWS
36 // ÿ������ֻ����һ��ʵ��������
37 acl_assert(__has_called == false);
38 __has_called = true;
39 daemon_mode_ = true;
40
41 // ���� acl ��������ܵĵ��̷߳�����ģ��
42 acl_aio_server2_main(argc, argv, service_main,
43 ACL_MASTER_SERVER_CTX, this,
44 ACL_MASTER_SERVER_ON_LISTEN, service_on_listen,
45 ACL_MASTER_SERVER_PRE_INIT, service_pre_jail,
46 ACL_MASTER_SERVER_POST_INIT, service_init,
47 ACL_MASTER_SERVER_PRE_EXIT, service_pre_exit,
48 ACL_MASTER_SERVER_EXIT, service_exit,
49 ACL_MASTER_SERVER_SIGHUP, service_on_sighup,
50 ACL_MASTER_SERVER_BOOL_TABLE, conf_.get_bool_cfg(),
51 ACL_MASTER_SERVER_INT64_TABLE, conf_.get_int64_cfg(),
52 ACL_MASTER_SERVER_INT_TABLE, conf_.get_int_cfg(),
53 ACL_MASTER_SERVER_STR_TABLE, conf_.get_str_cfg(),
54 ACL_MASTER_SERVER_END);
55#else
56 logger_fatal("no support win32 yet!");
57#endif
58}
59
60const char* master_aio::get_conf_path() const
61{

Callers 15

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 5

acl_aio_server2_mainFunction · 0.85
get_bool_cfgMethod · 0.80
get_int64_cfgMethod · 0.80
get_int_cfgMethod · 0.80
get_str_cfgMethod · 0.80

Tested by

no test coverage detected