Commit 702bf552 authored by claes's avatar claes

Sts returned from SetPrio

parent bde33ef9
...@@ -594,15 +594,13 @@ thread_SetPrio ( ...@@ -594,15 +594,13 @@ thread_SetPrio (
{ {
pthread_t tid; pthread_t tid;
struct sched_param par; struct sched_param par;
pwr_tStatus sts = THREAD__SUCCESS;
/* Set priority and scheduling mechanism for thread. */ /* Set priority and scheduling mechanism for thread. */
tid = pthread_self(); tid = pthread_self();
prio = MIN(sched_get_priority_max(SCHED_FIFO), prio = MIN(sched_get_priority_max(SCHED_FIFO),
sched_get_priority_min(SCHED_FIFO) + prio); sched_get_priority_min(SCHED_FIFO) + prio);
par.sched_priority = prio; par.sched_priority = prio;
pthread_setschedparam(tid, SCHED_FIFO, &par); return errno_Status(pthread_setschedparam(tid, SCHED_FIFO, &par));
return sts;
} }
#else #else
# error Not defined for this platform ! # error Not defined for this platform !
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment