DescriptionUse a joinable background thread instead of worker pool in gin
gin's V8Platform wants to provide a way to run background tasks on V8's
behalf. It was using a base::WorkerPool, which lazily constructs non
joinable threads to execute tasks. This is problematic when running
inside a shared library that needs to stop completely so it can be
unloaded. This uses a single lazily constructed thread for background
tasks. In the context of js_content_handler there likely isn't another
thread sitting around which could share work with this since all the
app does is run JS, so pooling isn't that useful.
R=abarth@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/74f86ec4260f259401b594ff6129306465a5a801
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|