Структура, используемая для определения партиции адаптивного планировщика для потока и установки ему метки критической важности
#include <sys/sched_aps.h>#include <sys/neutrino.h>typedef struct {/* in params */_Int32t pid;_Int32t tid;/* out parms: */_Int16t id;_Int16t inherited_id;_Uint32t crit_state_flags;} sched_aps_query_thread_parms;
Структура используется в функции SchedCtl() в сочетании с командой SCHED_APS_QUERY_THREAD для одновременного изменения у потка метки критической важности и партиции адаптивного планировщика.
Структура включает следующие поля:
0
to indicate the calling process. 0
for the calling thread. APS_QCRIT_PERM_CRITICAL
isn't set, and APS_QCRIT_RUNNING_CRITICAL
is set, it means the thread has temporarily inherited the critical state. If APS_QCRIT_RUNNING_CRITICAL
is set, and APS_QCRIT_BILL_AS_CRITICAL
isn't set, it means that the thread is running as critical, but isn't depleting its partition's critical-time budget (i.e. it's running for free). ЗОСРВ «Нейтрино»
Предыдущий раздел: Описание API системной библиотеки