wip
This commit is contained in:
@@ -34,7 +34,10 @@ def set_realtime_priority(level: int) -> None:
|
|||||||
|
|
||||||
def set_core_affinity(cores: list[int]) -> None:
|
def set_core_affinity(cores: list[int]) -> None:
|
||||||
if not PC:
|
if not PC:
|
||||||
os.sched_setaffinity(0, cores)
|
try: # CLEARPILOT ....
|
||||||
|
os.sched_setaffinity(0, cores)
|
||||||
|
except:
|
||||||
|
nothing=0
|
||||||
|
|
||||||
|
|
||||||
def config_realtime_process(cores: int | list[int], priority: int) -> None:
|
def config_realtime_process(cores: int | list[int], priority: int) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user