int pol = SCHED_IDLE;
#else
int pol;
- pthread_getschedparam(self, &pol, ¶ms);
+ int err = pthread_getschedparam(self, &pol, ¶ms);
+ if (err != 0)
+ {
+ EINA_LOG_ERR("pthread_getschedparam failed: %d", err);
+ }
#endif
min = sched_get_priority_min(pol);
params.sched_priority = min;
int pol = SCHED_BATCH;
#else
int pol;
- pthread_getschedparam(self, &pol, ¶ms);
+ int err = pthread_getschedparam(self, &pol, ¶ms);
+ if (err != 0)
+ {
+ EINA_LOG_ERR("pthread_getschedparam failed: %d", err);
+ }
#endif
min = sched_get_priority_min(pol);
max = sched_get_priority_max(pol);
{
struct sched_param params;
int max, pol;
-
- pthread_getschedparam(self, &pol, ¶ms);
+ int err = pthread_getschedparam(self, &pol, ¶ms);
+ if (err != 0)
+ {
+ EINA_LOG_ERR("pthread_getschedparam failed: %d", err);
+ }
max = sched_get_priority_max(pol);
params.sched_priority += 5;
if (params.sched_priority > max) params.sched_priority = max;