* Add a new WakeUp method that gives a module a chance to be called back right away on the worker thread.
* Wrote unit tests for the class.
* Significantly reduce the amount of locking.
- ProcessThreadImpl itself does a lot less locking.
- Reimplemented the way we keep track of when to make calls to Process.
This reduces the amount of calls to TimeUntilNextProcess and since most implementations of that function grab a lock, this means less locking.
* Renamed ProcessThread::CreateProcessThread to ProcessThread::Create.
* Added thread checks for Start/Stop. Threading model of other functions is now documented.
* We now log an error if an implementation of TimeUntilNextProcess returns a negative value (some implementations do, but the method should only return a positive nr of ms).
* Removed the DestroyProcessThread method and instead force callers to use scoped_ptr<> to maintain object lifetime.
BUG=2822
R=henrika@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/35999004
Cr-Commit-Position: refs/heads/master@{#8261}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8261 4adac7df-926f-26a2-2b94-8c16560cd09d
INSTRUCTIONS: - Start with test #3 (Device enumeration) to get an overview of the available audio devices. - Next, proceed with test #4 (Device selection) to get more details about the supported functions for each audio device. - Verify two-way audio in test #5. Repeat this test for different selections of playout and recording devices. - More detailed tests (volume, mute etc.) can also be performed using #6-#11. NOTE: - Some tests requires that the user opens up the audio mixer dialog and verifies that a certain action (e.g. Mute ON/OFF) is executed correctly. - Files can be recorded during some tests to enable off-line analysis. - Full support of 'Default Communication' devices requires Windows 7. - If a test consists of several sub tests, press any key to start a new sub test. KNOWN ISSUES: - Microphone Boost control is not supported on Windows Vista or Windows 7. - Speaker and microphone volume controls will not work as intended on Windows Vista if a 'Default Communication' device is selected in any direction.