mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
This is a simplification of the internal `TaskQueue` API that moves the `TaskManager` to the `GlobalScope` itself. In addition, the handling of cancellers is moved to the `TaskManager` as well. This means that no arguments other than the `task` are necessary for queueing tasks, which makes the API a lot easier to use and cleaner. `TaskSource` now also keeps a copy of the canceller with it, so that they always know the proper way to cancel any tasks queued on them. There is one complication here. The event loop `sender` for dedicated workers is constantly changing as it is set to `None` when not handling messages. This is because this sender keeps a handle to the main thread's `Worker` object, preventing garbage collection while any messages are still in flight or being handled. This change allows setting the `sender` on the `TaskManager` to `None` to allow proper garbabge collection. Signed-off-by: Martin Robinson <mrobinson@igalia.com> |
||
---|---|---|
.. | ||
gpu.rs | ||
gpuadapter.rs | ||
gpuadapterinfo.rs | ||
gpubindgroup.rs | ||
gpubindgrouplayout.rs | ||
gpubuffer.rs | ||
gpubufferusage.rs | ||
gpucanvascontext.rs | ||
gpucolorwrite.rs | ||
gpucommandbuffer.rs | ||
gpucommandencoder.rs | ||
gpucompilationinfo.rs | ||
gpucompilationmessage.rs | ||
gpucomputepassencoder.rs | ||
gpucomputepipeline.rs | ||
gpuconvert.rs | ||
gpudevice.rs | ||
gpudevicelostinfo.rs | ||
gpuerror.rs | ||
gpuinternalerror.rs | ||
gpumapmode.rs | ||
gpuoutofmemoryerror.rs | ||
gpupipelineerror.rs | ||
gpupipelinelayout.rs | ||
gpuqueryset.rs | ||
gpuqueue.rs | ||
gpurenderbundle.rs | ||
gpurenderbundleencoder.rs | ||
gpurenderpassencoder.rs | ||
gpurenderpipeline.rs | ||
gpusampler.rs | ||
gpushadermodule.rs | ||
gpushaderstage.rs | ||
gpusupportedfeatures.rs | ||
gpusupportedlimits.rs | ||
gputexture.rs | ||
gputextureusage.rs | ||
gputextureview.rs | ||
gpuuncapturederrorevent.rs | ||
gpuvalidationerror.rs | ||
identityhub.rs | ||
mod.rs |