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

Method check_dead

lib_acl_cpp/src/connpool/connect_pool.cpp:488–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488size_t connect_pool::check_dead(thread_pool* threads /* NULL */)
489{
490 lock_.lock();
491 size_t count = count_;
492 lock_.unlock();
493
494 if (count == 0) {
495 return 0;
496 }
497
498 if (threads == NULL) {
499 return check_dead(count);
500 }
501
502 // �����̳߳ؼ�⣬���������Ч��
503 return check_dead(count, *threads);
504}
505
506size_t connect_pool::check_dead(size_t count)
507{

Callers 1

check_dead_connsMethod · 0.80

Calls 15

check_jobClass · 0.85
get_limitMethod · 0.80
threads_countMethod · 0.80
beginMethod · 0.80
gettimeofdayFunction · 0.50
stamp_subFunction · 0.50
lockMethod · 0.45
unlockMethod · 0.45
aliveMethod · 0.45
push_backMethod · 0.45
executeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected