Closed
Bug 1539270
Opened 6 years ago
Closed 6 years ago
Have XPConnect instantiate a JS Helperthread pool using XPCOM threadpools
Categories
(Core :: XPConnect, enhancement, P2)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla69
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: KrisWright, Assigned: KrisWright)
References
Details
Attachments
(2 files)
In order to bring HelperThreads over into the XPCOM thread pools, we need to instantiate an nsThreadPool instance in xpconnect to dispatch tasks to. It needs to take a common task type from JS (see Bug 1532803) managed by some subclass of mozilla::Runnable that can define its own run() method for dispatch.
Assignee | ||
Comment 1•6 years ago
|
||
Added HelperThreadPool & HelperThreadTaskHandler classes to hold and manage an nsThreadPool. Initialized thread pool in XPCJSRuntime and created the HelperThreads() method to access directly.
Assignee | ||
Comment 2•6 years ago
|
||
Created a hook in Runtime to expose the helper thread dispatch method to js, which is set by XPCJSRUntime::init.
Updated•6 years ago
|
Assignee: nobody → kwright
Priority: -- → P2
Pushed by kwright@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/84bba101c4f4
Part 1: Add HelperThreadPool & HelperThreadTaskHandler classes and their initialization/shutdown process to manage an nsThreadPool r=mccr8,froydnj
https://hg.mozilla.org/integration/autoland/rev/abacb77a97bb
Part 2: Runtime hook to expose the helper thread dispatch method to js r=sfink
Comment 4•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/84bba101c4f4
https://hg.mozilla.org/mozilla-central/rev/abacb77a97bb
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox69:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in
before you can comment on or make changes to this bug.
Description
•