mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
da208da98f
Remove mWorkerPrivate from WorkerMainThreadRunnable. Instead, using a ThreadSafeWorkerRef to keep Worker alive until the created syncLoop is destroyed. In general, WorkerMainThreadRunnable::mWorkerPrivate is only used for dispatching the MainThreadStopSyncLoopRunnable back to the Worker thread. Because of the syncLoop, the Worker is supposed to be kept alive until the created syncLoop is destroyed. RefPtr<ThreadSafeWorkerRef> WorkerMainThreadRunnable::mWorkerRef is introduced to ensure a valid WorkerPrivate during WorkerMainThreadRunnable's execution. WorkerMainThreadRunnable::mWorkerRef is allocated just before creating a syncLoop in WorkerMainThreadRunnable::Dispatch. And released after the created syncLoop::Run() finishes. Depends on D212556 Differential Revision: https://phabricator.services.mozilla.com/D212557 |
||
---|---|---|
.. | ||
tests | ||
moz.build | ||
URL.cpp | ||
URL.h | ||
URLMainThread.cpp | ||
URLMainThread.h | ||
URLSearchParams.cpp | ||
URLSearchParams.h | ||
URLWorker.cpp | ||
URLWorker.h |