Lines Matching refs:policy
729 int policy=0; in osl_thread_priority_init_Impl() local
734 if ((nRet = pthread_getschedparam(pthread_self(), &policy, ¶m)) != 0) in osl_thread_priority_init_Impl()
741 if ( policy >= _SCHED_NEXT) in osl_thread_priority_init_Impl()
746 policy=SCHED_OTHER; in osl_thread_priority_init_Impl()
750 if ((nRet = sched_get_priority_min(policy) ) != -1) in osl_thread_priority_init_Impl()
752 OSL_TRACE("Min Prioriy for policy '%i' == '%i'\n",policy,nRet); in osl_thread_priority_init_Impl()
762 if ((nRet = sched_get_priority_max(policy) ) != -1) in osl_thread_priority_init_Impl()
764 OSL_TRACE("Max Prioriy for policy '%i' == '%i'\n",policy,nRet); in osl_thread_priority_init_Impl()
785 if ((nRet = pthread_setschedparam(pthread_self(), policy, ¶m)) != 0) in osl_thread_priority_init_Impl()
788 …OSL_TRACE("Thread ID '%i', Policy '%i', Priority '%i'\n",pthread_self(),policy,param.sched_priorit… in osl_thread_priority_init_Impl()
809 int policy; in osl_setThreadPriority() local
824 if (pthread_getschedparam(pImpl->m_hThread, &policy, &Param) != 0) in osl_setThreadPriority()
828 if ( policy >= _SCHED_NEXT) in osl_setThreadPriority()
833 policy=SCHED_OTHER; in osl_setThreadPriority()
875 if ((nRet = pthread_setschedparam(pImpl->m_hThread, policy, &Param)) != 0) in osl_setThreadPriority()