blob: 32443b7a5cf814cc3ce0b4398ef36c4af1a88cad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
from .native import TaskSet
def get_native_taskset(tasks):
ts = TaskSet()
for t in tasks:
if t.implicit_deadline():
ts.add_task(t.cost, t.period)
else:
ts.add_task(t.cost, t.period, t.deadline)
return ts
|