Return a platform scheduling priority for the normalized priority.
Declared in <bslmt_threadutil.h>
static
int
convertToSchedulingPriority(
ThreadAttributes::SchedulingPolicy policy,
double normalizedSchedulingPriority);
Return an integer scheduling priority appropriate for the specified normalizedSchedulingPriority and the specified policy. If either the minimum or maximum priority for this platform cannot be determined, return ThreadAttributes::e_UNSET_PRIORITY. Higher values of normalizedSchedulingPriority are considered to represent more urgent priorities. The behavior is undefined unless policy is a valid ThreadAttributes::SchedulingPolicy and normalizedSchedulingPriority is in the range [ 0.0, 1.0 ].
platform scheduling priority, or e_UNSET_PRIORITY if undetermined
| Name | Description |
|---|---|
| policy | scheduling policy for which to convert the priority |
| normalizedSchedulingPriority | priority in the range [0.0, 1.0] |