Lines Matching refs:pSave
273 static void rtSchedNativeSave(PSAVEDPRIORITY pSave)
275 memset(pSave, 0xff, sizeof(*pSave));
278 pSave->iPriority = getpriority(PRIO_PROCESS, 0 /* current process */);
282 sched_getparam(0 /* current process */, &pSave->SchedParam);
286 pSave->iPolicy = sched_getscheduler(0 /* current process */);
289 int rc = pthread_getschedparam(pthread_self(), &pSave->iPthreadPolicy, &pSave->PthreadSchedParam);
298 static void rtSchedNativeRestore(PSAVEDPRIORITY pSave)
300 setpriority(PRIO_PROCESS, 0, pSave->iPriority);
301 sched_setscheduler(0, pSave->iPolicy, &pSave->SchedParam);
302 sched_setparam(0, &pSave->SchedParam);
303 pthread_setschedparam(pthread_self(), pSave->iPthreadPolicy, &pSave->PthreadSchedParam);