#include <wrapVirtualThreads.h>
Public Member Functions | |
WrapVirtualThreads (const int &pSLP_TIME=200) | |
virtual | ~WrapVirtualThreads () |
destructor. | |
virtual void | Stop () |
Stop, for stopping the thread. | |
int | addVirtualThread (SubsMod *) |
adds a virtual thread to the wrapVirtualThreads thread, virtual thread vector | |
void | setSlpTime (const int &pSLP_TIME) |
change the sleep time that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run | |
Protected Member Functions | |
virtual void | run () |
It administers them, making sure that each runs pseudo concurrently
|
|
|
adds a virtual thread to the wrapVirtualThreads thread, virtual thread vector
|
|
Run function - body of thread. Cycle through each virtual thread, running one 'step' of each, and then sleeping. |
|
change the sleep time that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run
|