commit | 54aa4f1ad7293be94fc044ee2f8adcffe729986d | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Jul 22 22:24:13 2013 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Jul 22 22:24:13 2013 |
tree | 1b5438b9bb1fc7866a2da980a0f4ff0fed7f2f2d | |
parent | 866fa2ccbffcbc41af001d772440f4baf5609848 [diff] |
Made MessagePump a non-thread safe class. This CL makes MessagePump a non-thread safe class to make sure thread-bound resources (such as the UI window used for pumping messages on Windows) are freed on the correct thread. Handling of incoming tasks and synchronization between different threads was moved out to a separate class - IncomingTaskQueue reducing the number of locks to be taken while posting a task to one. Posting tasks via both MessageLoop and MessageLoopProxyImpl is now routed via IncomingTaskQueue. TBR all reviewers from https://chromiumcodereview.appspot.com/17567007/ because this is a re-land of it with a mechanical fix (adding a missing header). [email protected],[email protected],[email protected],[email protected],[email protected] BUG=241939 Review URL: https://codereview.chromium.org/19661004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212987 0039d316-1c4b-4281-b951-d872f2087c98