Creates a timer associated with a specific context and event queue
that expires with a specified delay.

C# |
public LBMTimer( LBMContext lbmctx, long milliseconds, LBMTimerCallback cb, Object cbArg, LBMEventQueue lbmevq )

- lbmctx (LBMContext)
- LBMContext object with which to associate this timer (determines which LBM thread will execute the timer function)
- milliseconds (Int64)
- Number of milliseconds until the timer expires
- cb (LBMTimerCallback)
- Callback implementing the LBMTimerCallback delegate interface
- cbArg (Object)
- Callback object passed as token to callback interface
- lbmevq (LBMEventQueue)
- Event queue with which to associate this timer

A zero duration timer is legal and causes the associated callback
to be called as soon as possible on the context thread or to be
enqueued as an event on the associated event queue. In this case,
the event queue dispatching thread calls the associated callback
after all currently pending events have been dispatched.

Exception | Condition |
---|---|
Invalid argument or unexpected operational behavior has been encountered by unmanaged LBM C layer function. |