DescriptionPepper: Narrow locking at ld subprocess start.
Currently, subprocess_mu_ is held the entire time the ld subprocess is
starting. This blocks a larger refactor that I'd like to make as part of nexe
loading.
I'd like to change ServiceRuntime::LoadModule() to be asynchronous to simplify
threading behavior on the plugin side when loading nexe modules. However, this
requires that many methods are made asynchronous, including
Plugin::LoadHelperNaClModule().
PnaclTranslateThread will need to use a pattern similar to WaitForSelLdrStart()
to resume execution on a background thread. However, I don't like the idea of
introducing another mutex and condvar to deal with while holding
subprocess_mu_.
This change narrows the time that subprocess_mu_ is held to make that refactor
possible. This follows a similar change made for the llc subprocess.
BUG=333950
R=bbudge@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274557
Patch Set 1 : #
Total comments: 2
Patch Set 2 : fixes for bbudge #Patch Set 3 : build fix #Patch Set 4 : Add DCHECK #Messages
Total messages: 5 (0 generated)
|