DescriptionAdding TryPostTask to the message loop
This is to allow code in certain high priority threads
to use the task/message loop facility. For example the
audio threads that currently use sentinel booleans and
recurring timers.
TryPostTask will fail if it is going contend for
the lock. The caller must handle that case.
Note that the current tests do not test the contended
mode. I don't see a way to test that case without
introducing runtime penalty for all of chrome.
BUG=none
TEST=included
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197315
Patch Set 1 #Patch Set 2 : fix bool #
Total comments: 6
Patch Set 3 : adding assert #Patch Set 4 : changes per jar comments #
Total comments: 2
Patch Set 5 : change comment #
Messages
Total messages: 12 (0 generated)
|