Lines Matching refs:pSave
335 static void rtSchedNativeSave(PSAVEDPRIORITY pSave)
337 memset(pSave, 0xff, sizeof(*pSave));
340 pSave->iPriority = getpriority(PRIO_PROCESS, 0 /* current process */);
344 sched_getparam(0 /* current process */, &pSave->SchedParam);
348 pSave->iPolicy = sched_getscheduler(0 /* current process */);
351 int rc = pthread_getschedparam(pthread_self(), &pSave->iPthreadPolicy, &pSave->PthreadSchedParam);
360 static void rtSchedNativeRestore(PSAVEDPRIORITY pSave)
362 setpriority(PRIO_PROCESS, 0, pSave->iPriority);
363 sched_setscheduler(0, pSave->iPolicy, &pSave->SchedParam);
364 sched_setparam(0, &pSave->SchedParam);
365 pthread_setschedparam(pthread_self(), pSave->iPthreadPolicy, &pSave->PthreadSchedParam);