C# Class System.Net.TimerThread.TimerQueue

Represents a queue of timers of fixed duration.

Inheritance: System.Collections.Queue
Mostra file Open project: dotnet/corefx

Private Methods

Method Description
CreateTimer ( Callback callback, object context ) : Timer

Creates new timers. This method is thread-safe.

Fire ( int &nextExpiration ) : bool

Called by the timer thread to fire the expired timers. Returns true if there are future timers in the queue, and if so, also sets nextExpiration.

TimerQueue ( int durationMilliseconds ) : System.Collections

Create a new TimerQueue. TimerQueues must be created while s_NewQueues is locked in order to synchronize with Shutdown().