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

Method finish

lib_acl_cpp/src/connpool/check_timer.cpp:133–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool check_timer::finish(bool graceful)
134{
135 if (!graceful || checkers_.empty()) {
136 return true;
137 }
138
139 // ��Ҫ�ȴ����м�����ӹر�
140
141 if (id_ >= 0) {
142 handle_.del_timer(this, id_);
143 id_ = -1;
144 keep_timer(false);
145 }
146
147 // ������ǰ�������ڼ��Ĵ��ڷ�����״̬�����Ӽ������첽�ر�֮
148
149 for (std::vector<check_client*>::iterator it = checkers_.begin();
150 it != checkers_.end(); ++it) {
151
152 // ��������ⷽʽ����ü�����������״̬������ֱ�ӹر�
153 if (!(*it)->blocked()) {
154 (*it)->close();
155 }
156 }
157
158 return false;
159}
160
161} // namespace acl

Callers 1

runMethod · 0.45

Calls 6

del_timerMethod · 0.80
beginMethod · 0.80
keep_timerFunction · 0.50
emptyMethod · 0.45
endMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected