Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JingleThreadWrapper::IsQuitting() returns false.
In https://webrtc-review.googlesource.com/c/src/+/124701, PostTask() is added to WebRTC threads in order to make it easier to post tasks asynchronously in third_party/webrtc, and to start discouraging blocking thread invokes just like they are in Chrome. Part of that CL adds a DCHECK that the thread is not quitting when posting in order to avoid race conditions and posting when the thread is already quit in WebRTC. The JingleThreadWrapper, which implements rtc::Thread, does not support quitting. Because of a NOTREACHED() it is not possible to use rtc::Thread::PostTask() in Chrome because of this DCHECK. This CL replaces the NOTREACHED() with NOTIMPLEMENTED_LOG_ONCE() in IsQuitting(). If quitting is not supported it is reasonable to always return false. (The alternative would be not to DCHECK !IsQuitting() in PostTask(), but then we'll be warned about less races on platforms that do support quitting.) Bug: webrtc:10294 Change-Id: Ibe35c42f6a860bc7cc933c06deeacff5b2be3215 Reviewed-on: https://chromium-review.googlesource.com/c/1491620 Commit-Queue: Henrik Boström <[email protected]> Reviewed-by: Sergey Ulanov <[email protected]> Cr-Commit-Position: refs/heads/master@{#636388}
- Loading branch information