CmdMessenger
3.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
|
Starts a recurring action with fixed interval If still running at next call, the action is skipped. More...
Classes | |
class | ThreadState |
Thread state. | |
Public Member Functions | |
TimedAction (DisposeStack disposeStack, double interval, Action action) | |
Constructor. | |
void | Start () |
Start timed actions. | |
void | Stop () |
Stop timed actions. | |
void | StopAndWait () |
Stop timed actions and wait until running function has finished. | |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Properties | |
bool | IsRunning [get] |
Returns whether this object is running. |
Starts a recurring action with fixed interval If still running at next call, the action is skipped.
CommandMessenger.TimedAction.TimedAction | ( | DisposeStack | disposeStack, |
double | interval, | ||
Action | action | ||
) |
Constructor.
disposeStack | Dispose stack to add itself to |
interval | The execution interval. |
action | The action to execute. |
override void CommandMessenger.TimedAction.Dispose | ( | bool | disposing | ) | [protected, virtual] |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
disposing | true if resources should be disposed, false if not. |
Reimplemented from CommandMessenger.DisposableObject.
void CommandMessenger.TimedAction.Start | ( | ) |
Start timed actions.
void CommandMessenger.TimedAction.Stop | ( | ) |
Stop timed actions.
Stop timed actions and wait until running function has finished.
bool CommandMessenger.TimedAction.IsRunning [get] |
Returns whether this object is running.
true if this object is running, false if not.