�����˳�ǰ������Դ
| 63 | |
| 64 | // �����˳�ǰ������Դ |
| 65 | static 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 | // ������̣�����������������ӷ�������ȡ��Ӧ���� |
| 97 | static bool get(connect_client* conn, int n) |
no test coverage detected