DescriptionImprove ScriptForbiddenScope handling in cross-threaded code.
For code that is used by multiple threads, we currently have to resort
to explicit main thread checks and manually adjust script forbidden
counts depending. Introduce ScriptForbiddenIfMainThreadScope that
reliably takes care of the details instead, entering&leaving a script
forbidden scope iff on the main thread.
R=haraken
BUG=
Committed: https://crrev.com/ac80984e24fa520ca86ad9fd0954bd00fbcf075a
Cr-Commit-Position: refs/heads/master@{#363454}
Patch Set 1 #Patch Set 2 : remove unnecessary include #
Total comments: 2
Patch Set 3 : rebased up past r363426 #
Messages
Total messages: 21 (12 generated)
|