fosa_thread_id_t thread,
fosa_ads_urgency_t urgency)
{
-#ifdef FULL_ERROR_CHECKING
- // check errors
- struct sched_param param;
- int policy;
-
- CHK(pthread_getschedparam(thread,&policy,¶m));
- if (policy!=SCHED_APP) {
- return FOSA_EPOLICY;
- }
-#endif // end if FULL_ERROR_CHECKING
-
sched_actions->activated=true;
return posix_appsched_actions_addactivate(&(sched_actions->actions),thread);
}
fosa_ads_actions_t *sched_actions,
fosa_thread_id_t thread)
{
-#ifdef FULL_ERROR_CHECKING
- // check errors
- struct sched_param param;
- int policy;
-
- CHK(pthread_getschedparam(thread,&policy,¶m));
- if (policy!=SCHED_APP) {
- return FOSA_EPOLICY;
- }
-#endif // end if FULL_ERROR_CHECKING
sched_actions->suspended=true;
return posix_appsched_actions_addsuspend(&(sched_actions->actions),thread);
}