MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / enableMacPerformanceMode

Function enableMacPerformanceMode

app/src/Platform/AppPlatform.cpp:383–386  ·  view source on GitHub ↗

* @brief macOS analog of the Windows EcoQoS opt-out: pins the main thread's QoS class to * user-interactive so the scheduler prefers performance cores on Apple silicon. */

Source from the content-addressed store, hash-verified

381 * user-interactive so the scheduler prefers performance cores on Apple silicon.
382 */
383static void enableMacPerformanceMode()
384{
385 (void)pthread_set_qos_class_self_np(QOS_CLASS_USER_INTERACTIVE, 0);
386}
387
388#endif
389

Callers 1

prepareEnvironmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected