|
CTRE Phoenix C++ 5.35.1
|
Scheduler that wil run its ILoopables in concurrency. More...
#include <ctre/phoenix/tasking/Schedulers/ConcurrentScheduler.h>
Public Member Functions | |
| ConcurrentScheduler () | |
| virtual | ~ConcurrentScheduler () |
| void | Add (ILoopable *aLoop, bool enable=true) |
| Add ILoopable to schedule. | |
| void | RemoveAll () |
| Remove all ILoopables from scheduler. | |
| void | Start (ILoopable *toStart) |
| Start an ILoopable. | |
| void | Stop (ILoopable *toStop) |
| Stop an ILoopable. | |
| void | StartAll () |
| Start all ILoopables. | |
| void | StopAll () |
| Stop all ILoopables. | |
| void | Process () |
| Process every ILoopable. | |
| bool | Iterated () |
| void | OnStart () |
| Start all ILoopables. | |
| void | OnLoop () |
| Process all ILoopables. | |
| void | OnStop () |
| Stop all ILoopables. | |
| bool | IsDone () |
Public Member Functions inherited from ctre::phoenix::tasking::ILoopable | |
| virtual | ~ILoopable () |
Public Member Functions inherited from ctre::phoenix::tasking::IProcessable | |
| virtual | ~IProcessable () |
Public Attributes | |
| std::vector< ILoopable * > | _loops |
| Should be private. | |
| std::vector< bool > | _enabs |
| Should be private. | |
Scheduler that wil run its ILoopables in concurrency.
| ctre::phoenix::tasking::schedulers::ConcurrentScheduler::ConcurrentScheduler | ( | ) |
|
virtual |
| void ctre::phoenix::tasking::schedulers::ConcurrentScheduler::Add | ( | ILoopable * | aLoop, |
| bool | enable = true ) |
|
virtual |
Implements ctre::phoenix::tasking::ILoopable.
| bool ctre::phoenix::tasking::schedulers::ConcurrentScheduler::Iterated | ( | ) |
|
virtual |
Process all ILoopables.
Implements ctre::phoenix::tasking::ILoopable.
|
virtual |
Start all ILoopables.
Implements ctre::phoenix::tasking::ILoopable.
|
virtual |
Stop all ILoopables.
Implements ctre::phoenix::tasking::ILoopable.
|
virtual |
| void ctre::phoenix::tasking::schedulers::ConcurrentScheduler::RemoveAll | ( | ) |
Remove all ILoopables from scheduler.
| void ctre::phoenix::tasking::schedulers::ConcurrentScheduler::Start | ( | ILoopable * | toStart | ) |
| void ctre::phoenix::tasking::schedulers::ConcurrentScheduler::StartAll | ( | ) |
Start all ILoopables.
| void ctre::phoenix::tasking::schedulers::ConcurrentScheduler::Stop | ( | ILoopable * | toStop | ) |
| void ctre::phoenix::tasking::schedulers::ConcurrentScheduler::StopAll | ( | ) |
Stop all ILoopables.
| std::vector<bool> ctre::phoenix::tasking::schedulers::ConcurrentScheduler::_enabs |
Should be private.
| std::vector<ILoopable*> ctre::phoenix::tasking::schedulers::ConcurrentScheduler::_loops |
Should be private.