| 9405ad6b | 13-Feb-2022 |
AzureMarker <[email protected]> |
Replace pthread_getpriority nonstandard function with standard ones
I chose the scheduler priorities based on https://man7.org/linux/man-pages/man7/sched.7.html
I think the cooperative app cores ar
Replace pthread_getpriority nonstandard function with standard ones
I chose the scheduler priorities based on https://man7.org/linux/man-pages/man7/sched.7.html
I think the cooperative app cores are most like SCHED_FIFO, while the sys core is similar to SCHED_RR.
However, I don't think our pthread implementation would be able to accurately return the right policy since we need to know what processor the thread is running on, and the only API to get that gets the ID for the current thread. Since the pthread function passes in a thread ID, we are unable to always get the processor ID and thus the policy.
In this case, I think we should just always return (and accept in set) SCHED_FIFO. I don't think this will be used anyways.
show more ...
|