[#BloombergLP-bslmt-ThreadAttributes-setSchedulingPriority]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]::setSchedulingPriority
:relfileprefix: ../../../
:mrdocs:

Set the `schedulingPriority` attribute of this object to the specified `value`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]&
setSchedulingPriority(int value);
----

== Description

Return a non&hyphen;`const` reference to this object (see also &lcub;Fluent Interface&rcub;)&period; This attribute is ignored unless `inheritSchedule()` is `false`&period; Higher values of `value` signify more urgent priorities&period; Note that the valid range of priorities depends upon the platform and `schedulingPolicy` attribute, and the minimum and maximum priority values are determined by methods in `bslmt&lowbar;threadutil`&period; See `bslmt&lowbar;threadutil` for information about this attribute&period;

== Return Value

a non&hyphen;`const` reference to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| scheduling priority for created threads
|===


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