teer::Scheduler Class Reference
List of all members.
Detailed Description
The scheduler base object, do not instanciate directly
Definition at line 96 of file teer.py.
Member Function Documentation
def teer::Scheduler::__init__ |
( |
|
self |
) |
|
def teer::Scheduler::_add_condition |
( |
|
self, |
|
|
|
entry | |
|
) |
| | [private] |
def teer::Scheduler::_del_condition |
( |
|
self, |
|
|
|
candidate | |
|
) |
| | [private] |
def teer::Scheduler::_exit |
( |
|
self, |
|
|
|
exiting_task | |
|
) |
| | [private] |
Handle the termination of a task
Definition at line 263 of file teer.py.
def teer::Scheduler::_log_task_created |
( |
|
self, |
|
|
|
task | |
|
) |
| | [private] |
def teer::Scheduler::_log_task_terminated |
( |
|
self, |
|
|
|
task | |
|
) |
| | [private] |
def teer::Scheduler::_schedule |
( |
|
self, |
|
|
|
task | |
|
) |
| | [private] |
def teer::Scheduler::_schedule_now |
( |
|
self, |
|
|
|
task | |
|
) |
| | [private] |
def teer::Scheduler::_set_timer_callback |
( |
|
self, |
|
|
|
t, |
|
|
|
f | |
|
) |
| | [private] |
def teer::Scheduler::_sleep |
( |
|
self, |
|
|
|
duration | |
|
) |
| | [private] |
Sleep a certain amount of time
Definition at line 245 of file teer.py.
def teer::Scheduler::_test_conditions |
( |
|
self, |
|
|
|
name | |
|
) |
| | [private] |
def teer::Scheduler::_wait_condition |
( |
|
self, |
|
|
|
task, |
|
|
|
condition | |
|
) |
| | [private] |
def teer::Scheduler::_wait_duration |
( |
|
self, |
|
|
|
task, |
|
|
|
duration | |
|
) |
| | [private] |
def teer::Scheduler::_wait_duration_rate |
( |
|
self, |
|
|
|
task, |
|
|
|
duration, |
|
|
|
rate | |
|
) |
| | [private] |
def teer::Scheduler::_wait_for_exit |
( |
|
self, |
|
|
|
task, |
|
|
|
waittid | |
|
) |
| | [private] |
Set task waiting of the exit of task waittid
Definition at line 292 of file teer.py.
def teer::Scheduler::create_rate |
( |
|
self, |
|
|
|
rate | |
|
) |
| | |
Create a rate object, to have a loop at a certain frequency
Definition at line 200 of file teer.py.
def teer::Scheduler::current_time |
( |
|
self |
) |
|
def teer::Scheduler::get_current_tid |
( |
|
self |
) |
|
Return the identifier of current task, None if not called from a task
Definition at line 120 of file teer.py.
def teer::Scheduler::kill_all_tasks_except |
( |
|
self, |
|
|
|
tids | |
|
) |
| | |
Kill all tasks except a subset, return the list of killed tasks
Definition at line 148 of file teer.py.
def teer::Scheduler::kill_task |
( |
|
self, |
|
|
|
tid | |
|
) |
| | |
Kill a task, return whether the task was killed
Definition at line 135 of file teer.py.
def teer::Scheduler::kill_tasks |
( |
|
self, |
|
|
|
tids | |
|
) |
| | |
Kill multiple tasks, return the list of killed tasks
Definition at line 144 of file teer.py.
def teer::Scheduler::list_all_tids |
( |
|
self |
) |
|
Return all task identifiers
Definition at line 116 of file teer.py.
def teer::Scheduler::new_task |
( |
|
self, |
|
|
|
target | |
|
) |
| | |
Create a new task from function target, return the task identifier
Definition at line 127 of file teer.py.
def teer::Scheduler::pause_all_tasks_except |
( |
|
self, |
|
|
|
tids | |
|
) |
| | |
Pause all tasks except a subset, return the list of paused tasks
Definition at line 172 of file teer.py.
def teer::Scheduler::pause_task |
( |
|
self, |
|
|
|
tid | |
|
) |
| | |
Pause a task, return whether the task was paused
Definition at line 153 of file teer.py.
def teer::Scheduler::pause_tasks |
( |
|
self, |
|
|
|
tids | |
|
) |
| | |
Pause multiple tasks, return the lits of paused tasks
Definition at line 168 of file teer.py.
def teer::Scheduler::printd |
( |
|
self, |
|
|
|
msg | |
|
) |
| | |
Print something including the current task identifier
Definition at line 206 of file teer.py.
def teer::Scheduler::resume_all_tasks_except |
( |
|
self, |
|
|
|
tids | |
|
) |
| | |
Resume all tasks except a subset, return the list of resumed tasks
Definition at line 195 of file teer.py.
def teer::Scheduler::resume_task |
( |
|
self, |
|
|
|
tid | |
|
) |
| | |
Resume a task, return whether the task was resumed successfully
Definition at line 177 of file teer.py.
def teer::Scheduler::resume_tasks |
( |
|
self, |
|
|
|
tids | |
|
) |
| | |
Resume the execution of multiple tasks, return the list of resumed tasks
Definition at line 191 of file teer.py.
def teer::Scheduler::step |
( |
|
self |
) |
|
Run all tasks until none is ready
Definition at line 212 of file teer.py.
Member Data Documentation
The documentation for this class was generated from the following file: