Tommi
5149242d06
Remove dependency on rtc::Event from rtc::Thread.
...
The problem with using an Event for the 'running_' flag is that a Wait() is necessary to check the value of the flag and calling Wait() means a synchronous system call. In chromium that can furthermore trigger checks on threads where IO/blocking operations aren't allowed.
Luckily, we don't really need this variable. Instead, I'm adding thread checks to make sure that the Thread class is used correctly and ensure that locking isn't needed for modifying state (no locks are there now). As long as we follow those rules, we only need to check if a thread_ variable has been set when we want to know if the thread is running or not.
Along the way, fixed some places where variables weren't being set or reset correctly.
Bug: webrtc:8596
Change-Id: I1467542416bc2ffbfefe276c460e76078a759bd9
Reviewed-on: https://webrtc-review.googlesource.com/27720
Reviewed-by: Henrik Grunell <henrikg@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21042}
2017-12-04 15:15:08 +00:00
..
2017-11-24 11:46:39 +00:00
2017-11-27 10:17:52 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-06 13:00:14 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-27 10:38:22 +00:00
2017-11-16 20:23:56 +00:00
2017-10-20 10:16:15 +00:00
2017-10-24 20:50:13 +00:00
2017-11-25 19:03:41 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-12-01 18:28:37 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-20 07:46:03 +00:00
2017-10-06 13:00:14 +00:00
2017-10-06 13:00:14 +00:00
2017-11-09 11:56:32 +00:00
2017-11-22 11:21:47 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-06 13:00:14 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 13:03:51 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-05 13:19:21 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-27 13:56:22 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-24 20:50:13 +00:00
2017-10-24 20:50:13 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-24 20:50:13 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 13:03:51 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-11-17 17:56:37 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-10-03 08:41:30 +00:00
2017-10-03 08:41:30 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-16 21:37:14 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-13 22:50:11 +00:00
2017-11-13 22:50:11 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-10-05 13:51:21 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-10-24 20:50:13 +00:00
2017-11-09 11:56:32 +00:00
2017-10-05 13:51:21 +00:00
2017-11-13 22:50:11 +00:00
2017-10-24 20:50:13 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-22 11:21:47 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-17 01:50:00 +00:00
2017-11-17 01:50:00 +00:00
2017-11-22 11:21:47 +00:00
2017-11-17 01:50:00 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-24 20:50:13 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-22 12:39:39 +00:00
2017-11-22 11:21:47 +00:00
2017-09-15 13:03:51 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-29 11:37:29 +00:00
2017-09-15 13:03:51 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-20 07:46:03 +00:00
2017-10-20 07:46:03 +00:00
2017-10-23 11:46:47 +00:00
2017-10-23 11:46:47 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-22 11:21:47 +00:00
2017-10-06 13:00:14 +00:00
2017-09-15 05:02:56 +00:00
2017-10-24 20:50:13 +00:00
2017-10-06 13:00:14 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-24 20:50:13 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-24 20:50:13 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-05 16:48:13 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-10-24 20:50:13 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-22 11:21:47 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-11-17 01:50:00 +00:00
2017-11-17 01:50:00 +00:00
2017-09-15 05:02:56 +00:00
2017-11-17 01:50:00 +00:00
2017-09-15 05:02:56 +00:00
2017-11-17 01:50:00 +00:00
2017-10-24 20:50:13 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-27 10:17:52 +00:00
2017-11-27 10:17:52 +00:00
2017-11-27 10:17:52 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-22 11:21:47 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-13 08:56:06 +00:00
2017-11-22 11:21:47 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-10-24 20:50:13 +00:00
2017-10-24 20:50:13 +00:00
2017-10-24 20:50:13 +00:00
2017-11-09 11:56:32 +00:00
2017-11-01 13:23:26 +00:00
2017-11-01 13:23:26 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-12-04 15:15:08 +00:00
2017-10-24 20:50:13 +00:00
2017-12-04 15:15:08 +00:00
2017-12-04 15:15:08 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-12-01 18:28:37 +00:00
2017-11-10 16:51:25 +00:00
2017-11-10 16:51:25 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-09-15 05:02:56 +00:00
2017-11-09 11:56:32 +00:00
2017-10-24 20:50:13 +00:00
2017-10-24 20:50:13 +00:00
2017-11-09 11:56:32 +00:00
2017-10-24 20:50:13 +00:00
2017-09-15 05:02:56 +00:00