nisse d9b75bef5d Fix a data race in the thread unit tests.
The flag used in thread_unittest.cc:FunctorB is subject to a (mostly
harmless) data race. In a tsan build, reproduce using

  out/Release/rtc_unittests --gtest_filter=AsyncInvokeTest.FireAndForget

There are additional tsan warnings, not all deterministic, when
running all the rtc_unittets: Some data races related to destructors,
and a locking-order-inversion warning. Hence applying this patch does
not make the unit tests tsan-clean.

I should also add that this is my very first cl, so I'm not at all
familiar with the process.

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

Cr-Commit-Position: refs/heads/master@{#10645}
2015-11-16 08:54:10 +00:00
..
2015-11-10 21:34:32 +00:00
2015-09-24 13:07:04 +00:00
2015-09-24 13:07:04 +00:00
2015-04-20 12:03:00 +00:00
2015-10-23 13:01:14 +00:00
2015-04-02 10:31:00 +00:00
2015-04-20 12:03:00 +00:00
2015-06-10 18:33:24 +00:00
2015-08-15 16:28:46 +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
2015-10-08 16:43:03 +00:00
2015-11-10 21:34:32 +00:00
2015-11-10 21:34:32 +00:00
2015-04-01 15:08:49 +00:00
2015-10-07 11:58:00 +00:00
2015-09-22 18:58:13 +00:00
2015-10-08 16:43:03 +00:00
2015-10-08 16:43:03 +00:00
2015-10-07 11:58:00 +00:00