DescriptionUse AutoThread in ChromotingHostContext & NPAPI plugin.
Callers now create ChromotingHostContext to create a set of threads
for host tasks to run on, and pass the threads' TaskRunners to each
host component explicitly. The ChromotingHostContext can then be
torn down as soon as the caller no longer needs to create new
components using the threads, and the threads themselves will exit
only when the created components no longer require them.
This is a re-re-land of 11094056; the re-land failed due to a rebasing typo, and some over-zealous thread checking in ChromotingHostContext.
BUG=145856
TEST=Chromoting IT2Me & Me2Me hosts start correctly, can be connected to, and shutdown cleanly. Unit-tests pass.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171358
Patch Set 1 : Re-land. #Patch Set 2 : Fix ChromotingHostContext startup-check and thread checks in getters. #
Total comments: 12
Patch Set 3 : Address review comments. #Messages
Total messages: 8 (0 generated)
|