You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion:
Add le_thread_SetPriorityRunning(,,) or maxpriority: to .adef.
We:re trying to achieve:
Legato thread running with normal prio.
Worker thread running with RR scheduling at _RT_1
How can we to this?
We either lack posibility to set max prio in .adef (can only set prio of main process, other threads can be set to same or lower)
OR
We lack posibility to lower prio on running process (set prio in .adef to rt1, create worker, set worker prio to rt1, lower prio of legato to normal (this operation is missing)).
If we call result = le_thread_SetPriority(main_thread, LE_THREAD_PRIORITY_NORMAL);
We get Jan 6 03:25:00 | Legato | spihandler[5928]/framework T=main | thread.c SetSchedPolicyAttr() 447 | Attempt to set scheduling policy on running thread 'main'.
It would be nice to have le_thread_SetPriorityRunning(,,) that would do same as below + update legato internal struct (if this now works, it's unveriified).
We can do this manually but it's unclear if this breaks legato (has internal struct that will not be correct afterwards:
Hi
Suggestion:
Add
le_thread_SetPriorityRunning(,,)
ormaxpriority:
to .adef.We:re trying to achieve:
How can we to this?
We either lack posibility to set max prio in .adef (can only set prio of main process, other threads can be set to same or lower)
OR
We lack posibility to lower prio on running process (set prio in .adef to rt1, create worker, set worker prio to rt1, lower prio of legato to normal (this operation is missing)).
If we call
result = le_thread_SetPriority(main_thread, LE_THREAD_PRIORITY_NORMAL);
We get
Jan 6 03:25:00 | Legato | spihandler[5928]/framework T=main | thread.c SetSchedPolicyAttr() 447 | Attempt to set scheduling policy on running thread 'main'.
It would be nice to have le_thread_SetPriorityRunning(,,) that would do same as below + update legato internal struct (if this now works, it's unveriified).
We can do this manually but it's unclear if this breaks legato (has internal struct that will not be correct afterwards:
(Note: Prio in .adef needs to be set to rt2 to work around bug in legato.)
The text was updated successfully, but these errors were encountered: