| 486 | } |
| 487 | |
| 488 | size_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 | |
| 506 | size_t connect_pool::check_dead(size_t count) |
| 507 | { |
no test coverage detected