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

Method on_trigger

lib_acl_cpp/samples/check_trigger/master_service.cpp:58–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void master_service::on_trigger()
59{
60 std::vector<acl::string>::const_iterator cit = url_list_.begin();
61 for (; cit != url_list_.end(); ++cit)
62 {
63 const char* url = (*cit).c_str();
64 for (int i = 0; i < var_cfg_http_cocurrent; i++)
65 {
66 // ����һ�������߳����񣬲������̳߳�ȥִ��
67 acl::thread_job* job = new http_job(*var_thrpool, url,
68 var_cfg_dns_ip, var_cfg_dns_port);
69 var_thrpool->execute(job);
70 }
71 }
72
73 // �ȴ��̳߳ؽ���
74 var_thrpool->wait();
75}
76
77void master_service::proc_on_init()
78{

Callers 3

service_mainMethod · 0.45
triggerMethod · 0.45
triggerMethod · 0.45

Calls 5

beginMethod · 0.80
endMethod · 0.45
c_strMethod · 0.45
executeMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected