mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2026-06-13 06:13:10 +02:00
wiringPi Version 2 - First commit (of v2)
This commit is contained in:
@@ -36,15 +36,16 @@
|
||||
*********************************************************************************
|
||||
*/
|
||||
|
||||
int piHiPri (int pri)
|
||||
int piHiPri (const int pri)
|
||||
{
|
||||
struct sched_param sched ;
|
||||
|
||||
memset (&sched, 0, sizeof(sched)) ;
|
||||
|
||||
if (pri > sched_get_priority_max (SCHED_RR))
|
||||
pri = sched_get_priority_max (SCHED_RR) ;
|
||||
sched.sched_priority = sched_get_priority_max (SCHED_RR) ;
|
||||
else
|
||||
sched.sched_priority = pri ;
|
||||
|
||||
sched.sched_priority = pri ;
|
||||
return sched_setscheduler (0, SCHED_RR, &sched) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user