version 1.1, 2012/02/21 23:32:47
|
version 1.1.1.3, 2021/03/17 00:39:23
|
Line 77 void
|
Line 77 void
|
TimerStop2(PppTimer timer, const char *file, int line) |
TimerStop2(PppTimer timer, const char *file, int line) |
{ |
{ |
/* Stop timer if running */ |
/* Stop timer if running */ |
Log(LG_EVENTS, ("EVENT: Stopping timer \"%s\" %s() at %s:%d", | if (EventIsRegistered(&timer->event)) { |
timer->desc, timer->dbg, file, line)); | Log(LG_EVENTS, ("\nEVENT: Stopping timer \"%s\" %s() at %s:%d\n", |
if (EventIsRegistered(&timer->event)) | timer->desc, timer->dbg, file, line)); |
EventUnRegister(&timer->event); |
EventUnRegister(&timer->event); |
|
} |
} |
} |
|
|
/* |
/* |
Line 94 TimerExpires(int type, void *cookie)
|
Line 95 TimerExpires(int type, void *cookie)
|
const char *desc = timer->desc; |
const char *desc = timer->desc; |
const char *dbg = timer->dbg; |
const char *dbg = timer->dbg; |
|
|
|
(void)type; |
Log(LG_EVENTS, ("EVENT: Processing timer \"%s\" %s()", desc, dbg)); |
Log(LG_EVENTS, ("EVENT: Processing timer \"%s\" %s()", desc, dbg)); |
(*timer->func)(timer->arg); |
(*timer->func)(timer->arg); |
Log(LG_EVENTS, ("EVENT: Processing timer \"%s\" %s() done", desc, dbg)); |
Log(LG_EVENTS, ("EVENT: Processing timer \"%s\" %s() done", desc, dbg)); |