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

Function end

lib_acl_cpp/samples/connect_manager/main.cpp:65–94  ·  view source on GitHub ↗

�����˳�ǰ������Դ

Source from the content-addressed store, hash-verified

63
64// �����˳�ǰ������Դ
65static void end(void)
66{
67 // �����̳߳�
68 acl_pthread_pool_destroy(__thr_pool);
69
70 // ��ӡ�������ӳؼ�Ⱥ�Ĵ��״̬
71 printf("\r\n");
72
73 check_all_connections();
74
75 printf("\r\n>>> STOPPING check thread now\r\n");
76
77#if 0
78 int i = 0;
79 while (i++ < 10)
80 {
81 sleep(1);
82 printf("----------- sleep %d seconds -----------\r\n", i);
83 }
84#endif
85
86 // ֹͣ��̨����߳�
87 acl::connect_monitor* monitor = __conn_manager->stop_monitor(true);
88
89 // ɾ�����������
90 delete monitor;
91
92 // �������ӳ�
93 delete __conn_manager;
94}
95
96// ������̣�����������������ӷ�������ȡ��Ӧ����
97static bool get(connect_client* conn, int n)

Callers 1

mainFunction · 0.70

Calls 4

acl_pthread_pool_destroyFunction · 0.85
stop_monitorMethod · 0.80
check_all_connectionsFunction · 0.70
sleepFunction · 0.50

Tested by

no test coverage detected