[#BloombergLP-bslmt-ThreadUtil-convertToSchedulingPriority]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::convertToSchedulingPriority
:relfileprefix: ../../../
:mrdocs:

Return an integer scheduling priority appropriate for the specified `normalizedSchedulingPriority` and the specified `policy`&period; If either the minimum or maximum priority for this platform cannot be determined, return `ThreadAttributes&colon;&colon;e&lowbar;UNSET&lowbar;PRIORITY`&period; Higher values of `normalizedSchedulingPriority` are considered to represent more urgent priorities&period; The behavior is undefined unless `policy` is a valid `ThreadAttributes&colon;&colon;SchedulingPolicy` and `normalizedSchedulingPriority` is in the range `&lsqb; 0&period;0, 1&period;0 &rsqb;`&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
convertToSchedulingPriority(
    xref:BloombergLP/bslmt/ThreadAttributes/SchedulingPolicy-08.adoc[ThreadAttributes::SchedulingPolicy] policy,
    double normalizedSchedulingPriority);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
