Creates a timer associated with this context and a specified event queue
that expires with a specified delay.
This prevents the timer from being reclaimed by the garbage collector before it expires.
Declaration Syntax
C# |
public LBMTimer scheduleTimer( long milliseconds, LBMTimerCallback cb, Object cbArg, LBMEventQueue lbmevq )
Parameters
- 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 with which to associate this timer (the timer events will be posted to this event queue)
Return Value
LBMTimer object
Remarks
See createTimer(Int64) to create a timer that will be reclaimed by the
garbage collector in the normal manner once it goes out of scope.