MCPcopy Create free account
hub / github.com/Segs/Segs / handle_timeout

Method handle_timeout

Components/EventProcessor.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29int EventProcessor::handle_timeout( const ACE_Time_Value &current_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
43int EventProcessor::svc( )
44{

Callers

nothing calls this directly

Calls 3

targetMethod · 0.45
idMethod · 0.45
putqMethod · 0.45

Tested by

no test coverage detected