how to cancel a timer when using timerManager in veins omnet ?

28 views
Skip to first unread message

naima

unread,
Oct 7, 2019, 11:26:11 AM10/7/19
to OMNeT++ Users
i'm using TimerManager class provided in veins to manage timers in my simulation. I created a recurring timer that fires every 5 seconds and I want to cancel it when a specific msg is received but I don't know how to use the cancel method:

void cancel(TimerHandle handle)

I don't understand what is TimerHandle and what parameter should I pass to the method in order to cancel the timer

PS:i want to cancel a specific timer not the TimerManager instance

Christoph Sommer

unread,
Oct 7, 2019, 2:16:14 PM10/7/19
to OMNeT++ Users
naima wrote:
>
> I don't understand what is TimerHandle and what parameter should I pass to the method in order to cancel the timer

You are also discussing this on...
https://stackoverflow.com/questions/58257386/how-to-cancel-a-timer-when-using-timermanager-in-veins-omnet

Best,

Christoph

--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/

Reply all
Reply to author
Forward
0 new messages