Open Bug 1637518 Opened 4 years ago Updated 2 years ago

[meta] Remove AbstractThread

Categories

(Core :: XPCOM, enhancement)

enhancement

Tracking

()

People

(Reporter: jya, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: meta)

AbstractThread was introduced in order to determine a generic threading model that guarantees that events always run serially; and this was done before nsISerialEventTarget existed.

Today AbstractThread is mostly used to access the direct task dispatch semantic; which gives a similar (but not identical) mechanism to JS's microtasks.

DirectTasks (and maybe StateChange tasks) should be merged into nsISerialEventTarget.

Direct Tasks should be split from the current Tail Dispatching mechanism as that was only an implementation detail and while similar aren't actually dependent on one another (see Bobby description in bug https://bugzilla.mozilla.org/show_bug.cgi?id=1631304#c0)

Keywords: meta
Summary: Merge AbstractThread into nsISerialEventTarget and remove XPCOMThreadWrapper → [meta] Remove AbstractThread
Depends on: 1637453
Depends on: 1644009
Depends on: 1645785
Depends on: 1648363
Depends on: 1702363
Depends on: 1668452
You need to log in before you can comment on or make changes to this bug.