tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit f0c4a4db70b5365f41f6d96772296625c85328e0
parent 8197d5c649889e3170d62c368156b4878e2b130d
Author: Markus Stange <mstange.moz@gmail.com>
Date:   Tue, 21 Oct 2025 21:11:48 +0000

Bug 1995638 - Make nsThreads use QOS_CLASS_USER_INITIATED by default. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D269469

Diffstat:
Mxpcom/threads/nsThread.cpp | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/xpcom/threads/nsThread.cpp b/xpcom/threads/nsThread.cpp @@ -337,6 +337,11 @@ void nsThread::ThreadFunc(void* aArg) { self->InitCommon(); +#ifdef XP_MACOSX + // Use "User Initiated" as the default quality of service. + pthread_set_qos_class_self_np(QOS_CLASS_USER_INITIATED, 0); +#endif + // Inform the ThreadManager nsThreadManager::get().RegisterCurrentThread(*self);