Skip to main content

set_user_interactive_qos

Function set_user_interactive_qos 

Source
pub fn set_user_interactive_qos()
Expand description

Put the calling thread in the QoS class a decode worker needs.

The whole of point (2) in this module’s header applies to any pool this crate builds, not just rayon’s, so both the rayon start_handler in init_cpu_pool and crate::cpu_pool::CpuPool’s workers call this one function rather than each spelling the class out. Two pools that disagreed about their QoS would put one of them on E-cores and nothing would say so.

A no-op off macOS, where QoS does not exist.