Lines Matching refs:policy
730 int policy=0; in osl_thread_priority_init_Impl() local
735 if ((nRet = pthread_getschedparam(pthread_self(), &policy, ¶m)) != 0) in osl_thread_priority_init_Impl()
742 if ( policy >= _SCHED_NEXT) in osl_thread_priority_init_Impl()
747 policy=SCHED_OTHER; in osl_thread_priority_init_Impl()
751 if ((nRet = sched_get_priority_min(policy) ) != -1) in osl_thread_priority_init_Impl()
753 OSL_TRACE("Min Prioriy for policy '%i' == '%i'\n",policy,nRet); in osl_thread_priority_init_Impl()
763 if ((nRet = sched_get_priority_max(policy) ) != -1) in osl_thread_priority_init_Impl()
765 OSL_TRACE("Max Prioriy for policy '%i' == '%i'\n",policy,nRet); in osl_thread_priority_init_Impl()
786 if ((nRet = pthread_setschedparam(pthread_self(), policy, ¶m)) != 0) in osl_thread_priority_init_Impl()
789 …OSL_TRACE("Thread ID '%i', Policy '%i', Priority '%i'\n",pthread_self(),policy,param.sched_priorit… in osl_thread_priority_init_Impl()
810 int policy; in osl_setThreadPriority() local
825 if (pthread_getschedparam(pImpl->m_hThread, &policy, &Param) != 0) in osl_setThreadPriority()
829 if ( policy >= _SCHED_NEXT) in osl_setThreadPriority()
834 policy=SCHED_OTHER; in osl_setThreadPriority()
876 if ((nRet = pthread_setschedparam(pImpl->m_hThread, policy, &Param)) != 0) in osl_setThreadPriority()