Module worklet

Source
Expand description

An implementation of Houdini worklets.

The goal of this implementation is to maximize responsiveness of worklets, and in particular to ensure that the thread performing worklet tasks is never busy GCing or loading worklet code. We do this by providing a custom thread pool implementation, which only performs GC or code loading on a backup thread, not on the primary worklet thread.

Structsยง

DroppableField ๐Ÿ”’
PendingTasksStruct ๐Ÿ”’
https://drafts.css-houdini.org/worklets/#pending-tasks-struct
Worklet ๐Ÿ”’
https://drafts.css-houdini.org/worklets/#worklet
WorkletCspProcessor ๐Ÿ”’
WorkletExecutor ๐Ÿ”’
An executor of worklet tasks
WorkletId ๐Ÿ”’
A guid for worklets.
WorkletThread ๐Ÿ”’
A thread for executing worklets.
WorkletThreadInit ๐Ÿ”’
Data to initialize a worklet thread.
WorkletThreadPool ๐Ÿ”’
Worklets execute in a dedicated thread pool.
WorkletThreadRole ๐Ÿ”’
A role that a worklet thread can be playing.

Enumsยง

WorkletControl ๐Ÿ”’
The control message sent to worklet threads
WorkletData ๐Ÿ”’
The data messages sent to worklet threads

Constantsยง

MIN_GC_THRESHOLD ๐Ÿ”’
WORKLET_THREAD_POOL_SIZE ๐Ÿ”’
_IMPL_DOMOBJECT_FOR_Worklet ๐Ÿ”’