C# Class Ros_CSharp.TimerManager

The timer manager.
Inheritance: IDisposable
显示文件 Open project: uml-robotics/ROS.NET

Public Methods

Method Description
Dispose ( ) : void

clean up shop

MakeTimer ( TimerCallback cb, int d = Timeout.Infinite, int p = Timeout.Infinite ) : WrappedTimer

Wrap and start timer a with added functionality, and make sure it dies with this TimerManager This DOES NOT START IT.

MakeTimer ( WrappedTimer t ) : void

Add a wrapped timer to the hashset

RemoveTimer ( WrappedTimer &t ) : void

Stop tracking a timer, and kill it

StartTimer ( TimerCallback cb, int d = Timeout.Infinite, int p = Timeout.Infinite ) : WrappedTimer

Wrap a timer a with added functionality, and make sure it dies with this TimerManager This DOES NOT START IT.

Method Details

Dispose() public method

clean up shop
public Dispose ( ) : void
return void

MakeTimer() public method

Wrap and start timer a with added functionality, and make sure it dies with this TimerManager This DOES NOT START IT.
public MakeTimer ( TimerCallback cb, int d = Timeout.Infinite, int p = Timeout.Infinite ) : WrappedTimer
cb TimerCallback /// The callback of the wrapped timer ///
d int /// The delay it should have ///
p int /// The period it should have ///
return WrappedTimer

MakeTimer() public method

Add a wrapped timer to the hashset
public MakeTimer ( WrappedTimer t ) : void
t WrappedTimer the wrapped timer
return void

RemoveTimer() public method

Stop tracking a timer, and kill it
public RemoveTimer ( WrappedTimer &t ) : void
t WrappedTimer The timer to forget and kill
return void

StartTimer() public method

Wrap a timer a with added functionality, and make sure it dies with this TimerManager This DOES NOT START IT.
public StartTimer ( TimerCallback cb, int d = Timeout.Infinite, int p = Timeout.Infinite ) : WrappedTimer
cb TimerCallback /// The callback of the wrapped timer ///
d int /// The delay it should have ///
p int /// The period it should have ///
return WrappedTimer