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

◆ priority() [1/2]

xtd::threading::thread_priority xtd::threading::thread::priority ( ) const
noexcept

Gets a value indicating the scheduling priority of a thread.

Returns
One 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
Examples
mixing_std_and_xtd_threads.cpp.