MCPcopy Create free account
hub / github.com/Snapchat/Valdi / qoSClassToNiceLevel

Function qoSClassToNiceLevel

valdi_core/src/valdi_core/cpp/Threading/Thread.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64#else
65
66int qoSClassToNiceLevel(ThreadQoSClass qosClass) {
67 switch (qosClass) {
68 case ThreadQoSClassLowest:
69 return 9;
70 case ThreadQoSClassLow:
71 return 5;
72 case ThreadQoSClassNormal:
73 return 0;
74 case ThreadQoSClassHigh:
75 return -2;
76 case ThreadQoSClassMax:
77 return -4;
78 }
79}
80
81void* threadEntryPoint(void* handle) {
82 Ref<Valdi::Thread> thread(reinterpret_cast<Valdi::Thread*>(handle));

Callers 1

handlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected