Make swapping the incoming queue with the work queue constant time.

This is an alternative to the fix proposed here:
http://codereview.chromium.org/172101

Credit goes to Dean McNamee for discovering this performance issue!

R=deanm
BUG=20204
TEST=none

Review URL: http://codereview.chromium.org/190006

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


CrOS-Libchrome-Original-Commit: b2f0ea1a109f6406d6633f51adb4621090b9032d
2 files changed
tree: 6245e1082e4daddbaa3476dbb8d9130e434a3b5b
  1. base/
  2. build/
  3. ipc/
  4. testing/