skvlad efc5ae94f9 Fixed flaky SharedExclusiveLock tests.
These tests were checking the behavior of thread synchronization
primitives using nothing but carefully timed sleeps. This was very
unreliable and prone to flakes.

This CL replaces the sleeps with waiting on synchronization events.
There is still the need to wait for timeouts when testing for negative
outcomes, but it's greatly reduced. I've run these tests for thousands
of iterations on MSan without a single failure.

BUG=webrtc:5824
R=pthatcher@webrtc.org

Review URL: https://codereview.webrtc.org/2393023002 .

Cr-Commit-Position: refs/heads/master@{#14534}
2016-10-05 22:58:18 +00:00
..
2016-10-05 08:45:59 +00:00
2016-10-05 08:45:59 +00:00
2015-04-02 10:31:00 +00:00
2016-09-29 00:42:08 +00:00
2016-09-29 00:42:08 +00:00
2016-10-03 11:16:15 +00:00
2016-10-03 11:16:15 +00:00
2016-10-03 11:16:15 +00:00
2016-09-29 00:42:08 +00:00
2015-12-28 22:07:05 +00:00
2015-12-28 22:07:05 +00:00
2016-09-29 00:42:08 +00:00
2015-05-21 11:50:41 +00:00
2015-05-21 11:50:41 +00:00
2015-04-01 22:25:29 +00:00
2016-08-16 13:38:23 +00:00
2016-07-01 20:59:39 +00:00
2016-07-01 10:45:29 +00:00
2016-02-02 16:34:16 +00:00
2016-04-28 12:14:30 +00:00
2016-10-04 13:46:00 +00:00
2015-09-22 18:58:13 +00:00
2016-01-04 21:44:16 +00:00
2016-10-03 07:30:08 +00:00
2016-10-03 07:30:08 +00:00