gecko-dev/dom/system
Nika Layzell d9c8a6fcbe Bug 1542802 - Part 1: Replace LazyIdleThread with a thin wrapper around nsThreadPool, r=jesup,gstoll
This does not reduce the number of threads we end up using in these
cases, but simplifies the complex implementation substantially by
relying on the idle thread lifetime management logic from nsThreadPool.

The nsISerialEventTarget implementation is maintained by wrapping the
nsThreadPool with a TaskQueue.

As a result of using these more reliable backing implementations, the
type is now also safe to use from any thread, rather than requiring
dispatches to all occur from the creator thread.

Unfortunately, this required some changes to the
UntrustedModulesProcessor, which was relying on the ability to fetch the
PRThread* (and from that the HANDLE) from the lazy thread in order to
perform priority changes on it. This was fixed by using a
nsIThreadPoolListener to watch the thread being created and destroyed,
and manually record a HANDLE to the thread which can be used for these
priority changes.

Differential Revision: https://phabricator.services.mozilla.com/D168017
2023-03-02 15:52:32 +00:00
..
android
linux Bug 1542802 - Part 1: Replace LazyIdleThread with a thin wrapper around nsThreadPool, r=jesup,gstoll 2023-03-02 15:52:32 +00:00
mac
tests Bug 1772089 p3: Remove content temp dir from PathUtils. r=barret 2023-02-24 08:44:41 +00:00
windows Bug 1816740 [2/6] - move Windows geolocation actor to subdirectory r=handyman 2023-02-22 21:05:23 +00:00
components.conf
IOUtils.cpp
IOUtils.h
moz.build
NetworkGeolocationProvider.jsm
nsDeviceSensors.cpp
nsDeviceSensors.h
nsIOSFileConstantsService.idl
nsIOSPermissionRequest.idl
nsOSPermissionRequest.h
nsOSPermissionRequestBase.cpp
nsOSPermissionRequestBase.h
OSFileConstants.cpp Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium 2023-02-13 15:02:07 +00:00
OSFileConstants.h
PathUtils.cpp Bug 1772089 p3: Remove content temp dir from PathUtils. r=barret 2023-02-24 08:44:41 +00:00
PathUtils.h Bug 1772089 p3: Remove content temp dir from PathUtils. r=barret 2023-02-24 08:44:41 +00:00