Adding 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

Review URL: https://chromiumcodereview.appspot.com/14387002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197315 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 2a59a9065e6cbb949162964f75e962ad3a2349d7
4 files changed
tree: c357b9178867fede3768b4cf31d326b65804189a
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/