This class manages a set of LLRunnable objects. More...
#include <llrun.h>
Public Types | |
enum | ERunSchedule |
Enumeration which specifies when to run. | |
typedef S64 | run_handle_t |
The handle for use in the API. | |
typedef boost::shared_ptr < LLRunnable > | run_ptr_t |
The pointer to a runnable. | |
Public Member Functions | |
run_handle_t | addRunnable (run_ptr_t runnable, ERunSchedule schedule, F64 seconds) |
Add a runnable to the run list. | |
LLRunner () | |
Constructor. | |
run_ptr_t | removeRunnable (run_handle_t handle) |
Remove the specified runnable. | |
S32 | run () |
Run the runnables which are scheduled to run. | |
~LLRunner () | |
Destructor. |
This class manages a set of LLRunnable objects.
An instance of this class has a collection of LLRunnable objects which are scheduled to run on a repeating or one time basis.
LLRunner::LLRunner | ( | ) |
Constructor.
LLRunner::run_handle_t LLRunner::addRunnable | ( | run_ptr_t | runnable, | |
ERunSchedule | schedule, | |||
F64 | seconds | |||
) |
Add a runnable to the run list.
The handle of the runnable is unique to each addition. If the same runnable is added a second time with the same or different schedule, this method will return a new handle.
runnable | The runnable to run() on schedule. | |
schedule | Specifies the run schedule. | |
seconds | When to run the runnable as interpreted by schedule. |
LLRunner::run_ptr_t LLRunner::removeRunnable | ( | LLRunner::run_handle_t | handle | ) |
Remove the specified runnable.
handle | The handle of the runnable to remove. |
S32 LLRunner::run | ( | void | ) |
Run the runnables which are scheduled to run.