TimerExt

Undocumented in source.

Constructors

this
this(EpollSelectDispatcher epoll)

Constructor. Creates the internal event timer set.

Members

Aliases

EventDg
alias EventDg = Timers.EventDg

Type of delegate called when an event fires. The delegate's return value indicates whether the timed event should remain registered (true) or be unregistered (false).

Functions

atExit
void atExit(IApplication app, istring[] args, int status, ExitException exception)

Unused IApplicationExtension methods.

clear
void clear()

Unregisters all timed events (thus unregisters the internal TimerEvent from epoll).

onExitException
ExitException onExitException(IApplication app, istring[] args, ExitException exception)

Unused IApplicationExtension methods.

order
int order()
postRun
void postRun(IApplication app, istring[] args, int status)

Unused IApplicationExtension methods.

preRun
void preRun(IApplication app, istring[] args)

Unused IApplicationExtension methods.

register
void register(EventDg dg, double period_s)

Registers a timer with the extension. The provided delegate will be called repeatedly according to the specified period, as long as it returns true.

register
void register(EventDg dg, double init_s, double period_s)

Registers a timer with the extension. The provided delegate will be called once after the initial delay specified, then repeatedly according to the specified period, as long as it returns true.

registerMicrosec
void registerMicrosec(EventDg dg, ulong init_microsec, ulong period_microsec)

Registers a timer with the extension. The provided delegate will be called once after the initial delay specified, then repeatedly according to the specified period, as long as it returns true.

Inherited Members

From IApplicationExtension

IApplication
alias IApplication = .IApplication

Alias of IApplication, for use by implementing classes without needing to import ocean.util.app.model.IApplication.

preRun
void preRun(IApplication app, istring[] args)

Function executed before the program runs.

postRun
void postRun(IApplication app, istring[] args, int status)

Function executed after the program runs.

atExit
void atExit(IApplication app, istring[] args, int status, ExitException exception)

Function executed at program exit.

onExitException
ExitException onExitException(IApplication app, istring[] args, ExitException exception)

Function executed if (and only if) an ExitException was thrown.

Meta