xtd 0.2.0
Loading...
Searching...
No Matches

◆ priority() [2/2]

thread & xtd::threading::thread::priority ( xtd::threading::thread_priority  value)

Sets a value indicating the scheduling priority of a thread.

Parameters
valueOne of the xtd::threading::thread_priority values. The default value is xtd::threading::thread_priority::normal.
Exceptions
xtd::threading::thread_state_exceptionThe thread has reached a final state, such as Aborted.
xtd::argument_exceptionThe value specified for a set operation is not a valid xtd::threading::thread_priority value.
Remarks
A thread can be assigned any one of the following priority xtd::threading::thread_priority values:
  • highest
  • above_normal
  • normal
  • below_normal
  • lowest