Return the minimum available scheduling priority for the policy.

Synopsis

Declared in <bslmt_threadutilimpl_pthread.h>

static
int
getMinSchedulingPriority(ThreadAttributes::SchedulingPolicy policy);

Description

Return the minimum available priority for the specified policy, where policy is of type ThreadAttributes::SchedulingPolicy. Return ThreadAttributes::BSLMT_UNSET_PRIORITY if the minimum scheduling priority cannot be determined. Note that, for some platform / policy combinations, getMinSchedulingPriority(policy) and getMaxSchedulingPriority(policy) return the same value.

Return Value

the minimum available priority, or ThreadAttributes::BSLMT_UNSET_PRIORITY if it cannot be determined

Parameters

Name

Description

policy

scheduling policy whose minimum priority is requested

Created with MrDocs