| 27 | } |
| 28 | |
| 29 | int EventProcessor::handle_timeout( const ACE_Time_Value ¤t_time, const void *act /* = 0 */ ) |
| 30 | { |
| 31 | const SEGSTimer *timer_object = static_cast<const SEGSTimer *>(act); |
| 32 | assert(timer_object!=nullptr); |
| 33 | // if target is known |
| 34 | if(timer_object->target()) |
| 35 | { |
| 36 | Event *mb=new Timeout(current_time,timer_object->id(),this); |
| 37 | // post a new event to it |
| 38 | return timer_object->target()->putq(mb); |
| 39 | } |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | int EventProcessor::svc( ) |
| 44 | { |