| 41 | } |
| 42 | |
| 43 | int aio_timer_callback::clear() |
| 44 | { |
| 45 | int n = 0; |
| 46 | std::list<aio_timer_task*>::iterator it = tasks_.begin(); |
| 47 | for (; it != tasks_.end(); ++it) { |
| 48 | delete (*it); |
| 49 | n++; |
| 50 | } |
| 51 | tasks_.clear(); |
| 52 | length_ = 0; |
| 53 | return n; |
| 54 | } |
| 55 | |
| 56 | bool aio_timer_callback::empty() const |
| 57 | { |
no test coverage detected