Use appropriate QoS classes throughout the codebase

This commit is contained in:
Luna Razzaghipour 2023-05-25 20:55:42 +10:00
parent 2924fd2213
commit d0b001eed2
No known key found for this signature in database
9 changed files with 20 additions and 19 deletions

View file

@ -155,8 +155,6 @@ pub enum QoSClass {
/// performance, responsiveness and efficiency.
Utility,
Default,
/// TLDR: tasks that block using your app
///
/// Contract:
@ -234,7 +232,6 @@ mod imp {
let c = match class {
QoSClass::UserInteractive => libc::qos_class_t::QOS_CLASS_USER_INTERACTIVE,
QoSClass::UserInitiated => libc::qos_class_t::QOS_CLASS_USER_INITIATED,
QoSClass::Default => libc::qos_class_t::QOS_CLASS_DEFAULT,
QoSClass::Utility => libc::qos_class_t::QOS_CLASS_UTILITY,
QoSClass::Background => libc::qos_class_t::QOS_CLASS_BACKGROUND,
};