setThreadPriority(_:)
Sets the current thread’s priority.
Declaration
class func setThreadPriority(_ p: Double) -> BoolParameters
- p:
The new priority, specified with a floating point number from 0.0 to 1.0, where 1.0 is highest priority.
Return Value
Discussion
The priorities in this range are mapped to the operating system’s priority values.