gecko-dev/xpcom/threads
Andrew Osmond e8f9ed23ec Bug 1783299 - Add support for threadsafe mirrored StaticPref strings. r=KrisWright
Prior to this patch, one would need to manually instantiate a copy of a
string from a preference on the main thread in order to access it in a
threadsafe manner on another thread.

This patch adds support for a `DataMutexString` threadsafe type for
mirror: always type StaticPrefs, and works similarly to the existing
atomic types.

Differential Revision: https://phabricator.services.mozilla.com/D153829
2022-08-16 01:00:21 +00:00
..
AbstractThread.cpp Bug 1738106 - Part 4: Support ThreadSafeWeakPtr in TaskQueue, r=xpcom-reviewers,mccr8 2022-05-02 20:37:35 +00:00
AbstractThread.h Bug 1738106 - Part 4: Support ThreadSafeWeakPtr in TaskQueue, r=xpcom-reviewers,mccr8 2022-05-02 20:37:35 +00:00
BlockingResourceBase.cpp Bug 1761536 - Part 2: Replace nsTArray::elem_type with value_type, r=mccr8 2022-04-01 17:00:25 +00:00
BlockingResourceBase.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
CPUUsageWatcher.cpp
CPUUsageWatcher.h
CondVar.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
DataMutex.h Bug 1783299 - Add support for threadsafe mirrored StaticPref strings. r=KrisWright 2022-08-16 01:00:21 +00:00
DeadlockDetector.h
DelayedRunnable.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
DelayedRunnable.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
EventQueue.cpp Bug 1738627 - Store distinct profiling features of individual threads - r=canaltinova 2021-11-08 23:59:35 +00:00
EventQueue.h Bug 1770087 - Show the task priority in task controller Runnable markers, r=bas,gerald. 2022-06-15 15:00:40 +00:00
EventTargetCapability.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
IdlePeriodState.cpp
IdlePeriodState.h
IdleTaskRunner.cpp Bug 1774864 - Cleanup xpcom/ includes r=sylvestre 2022-06-24 07:13:59 +00:00
IdleTaskRunner.h Bug 1774864 - Cleanup xpcom/ includes r=sylvestre 2022-06-24 07:13:59 +00:00
InputEventStatistics.cpp
InputEventStatistics.h
InputTaskManager.cpp
InputTaskManager.h
LazyIdleThread.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
LazyIdleThread.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
LeakRefPtr.h
MainThreadIdlePeriod.cpp Bug 1771718, let idle period be shorter when frame rate is very high, r=farre 2022-06-02 10:40:54 +00:00
MainThreadIdlePeriod.h
MainThreadUtils.h
Monitor.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
MozPromise.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
MozPromiseInlines.h
Mutex.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
PerformanceCounter.cpp
PerformanceCounter.h
Queue.h
RWLock.cpp Bug 1757100 - Move minimal platform-dependent part of RWLock to mozglue/misc/PlatformRWLock.h&cpp - r=glandium,xpcom-reviewers 2022-02-27 23:32:55 +00:00
RWLock.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
RecursiveMutex.cpp
RecursiveMutex.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
ReentrantMonitor.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
SchedulerGroup.cpp Bug 1751041 - Compute the process startup timestamp early during startup r=glandium 2022-01-26 19:57:41 +00:00
SchedulerGroup.h
SharedThreadPool.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
SharedThreadPool.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
SpinEventLoopUntil.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
StateMirroring.h
StateWatching.h Backed out 2 changesets (bug 1738931) for causing mochitest failures on VideoConduit and WatchManager CLOSED TREE 2021-11-11 14:06:57 +02:00
SyncRunnable.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
SynchronizedEventQueue.cpp
SynchronizedEventQueue.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
TaskCategory.h
TaskController.cpp Bug 1770087 - Show the task priority in task controller Runnable markers, r=bas,gerald. 2022-06-15 15:00:40 +00:00
TaskController.h Bug 1762090, don't block refreshdrivers for too long time on linux, r=mstange 2022-04-06 00:40:25 +00:00
TaskDispatcher.h Bug 1746361 - Gecko Profiler: Track wrapped runnables throughout the tree. r=gerald 2022-01-05 15:26:24 +00:00
TaskQueue.cpp Bug 1738106 - Part 5: Track TaskQueue lifetimes to avoid leaking TaskQueues, r=xpcom-reviewers,mccr8 2022-05-02 20:37:35 +00:00
TaskQueue.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
ThreadBound.h
ThreadDelay.cpp
ThreadDelay.h
ThreadEventQueue.cpp Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
ThreadEventQueue.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
ThreadEventTarget.cpp Bug 1764119 - Part 2: Don't check gXPCOMThreadsShutdown in ThreadEventTarget::Dispatch, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
ThreadEventTarget.h Bug 1764119 - Part 2: Don't check gXPCOMThreadsShutdown in ThreadEventTarget::Dispatch, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
ThreadLocalVariables.cpp
ThrottledEventQueue.cpp Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
ThrottledEventQueue.h
TimerThread.cpp Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
TimerThread.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
VsyncTaskManager.cpp
VsyncTaskManager.h
components.conf Bug 1731890 - Adding Utility process with basic sandbox r=agi,nika,bobowen 2022-01-12 20:52:58 +00:00
moz.build Bug 1767897 - Add EventTargetCapability. r=xpcom-reviewers,nika 2022-05-10 04:36:05 +00:00
nsEnvironment.cpp Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsEnvironment.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsICancelableRunnable.h
nsIDirectTaskDispatcher.idl
nsIDiscardableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
nsIIdlePeriod.idl
nsIIdleRunnable.h
nsINamed.idl
nsIProcess.idl
nsIRunnable.idl Bug 1748718 - Part 3: Remove now-unnecessary xpidl constant casts, r=emilio 2022-01-07 20:35:15 +00:00
nsISerialEventTarget.idl
nsISupportsPriority.idl
nsITargetShutdownTask.h Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
nsIThread.idl Bug 1747526 - Return a handle from asyncShutdown to observe and cancel thread shutdown progress, r=xpcom-reviewers,KrisWright 2022-02-08 23:58:03 +00:00
nsIThreadInternal.idl
nsIThreadManager.idl Bug 1761590 - Enter microtask when evaluating console/debugger input. r=nchevobbe,smaug 2022-04-14 01:42:59 +00:00
nsIThreadPool.idl
nsIThreadShutdown.idl Bug 1747526 - Return a handle from asyncShutdown to observe and cancel thread shutdown progress, r=xpcom-reviewers,KrisWright 2022-02-08 23:58:03 +00:00
nsITimer.idl Bug 1778211 - Reject xpidl CDATA containing 'virtual', r=xpcom-reviewers,necko-reviewers,mccr8,dragana 2022-07-06 14:53:06 +00:00
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsProcessCommon.cpp Bug 1762839 - Fix Win specific thread annotations in nsProcessCommon. r=jesup,rkraesig 2022-04-10 21:58:26 +00:00
nsProxyRelease.cpp
nsProxyRelease.h Bug 1735299 - Remove last use of unnammed NS_ReleaseOnMainThread r=extension-reviewers,rpl,nhnt11 2021-10-19 13:44:25 +00:00
nsThread.cpp Bug 1770451 - Trace important shutdown events in a thread's name if MOZ_DIAGNOSTIC_ASSERT_ENABLED. r=xpcom-reviewers,barret 2022-06-15 18:15:02 +00:00
nsThread.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsThreadManager.cpp Bug 1764119 - Part 1: Do final KillClearOnShutdown after XPCOM threads shutdown, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
nsThreadManager.h Bug 1764119 - Part 1: Do final KillClearOnShutdown after XPCOM threads shutdown, r=xpcom-reviewers,kmag,jstutte 2022-05-02 20:38:43 +00:00
nsThreadPool.cpp Bug 1738103 - Part 4: Add XPCOM support for shutdown tasks, r=necko-reviewers,KrisWright 2022-03-23 22:22:04 +00:00
nsThreadPool.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsThreadSyncDispatch.h
nsThreadUtils.cpp Bug 1738103 - Part 1: Remove the unused TailDispatchingTarget type, r=xpcom-reviewers,KrisWright 2022-03-23 22:22:02 +00:00
nsThreadUtils.h Bug 1738103 - Part 1: Remove the unused TailDispatchingTarget type, r=xpcom-reviewers,KrisWright 2022-03-23 22:22:02 +00:00
nsTimerImpl.cpp Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00
nsTimerImpl.h Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato 2022-08-03 16:39:41 +00:00