commit | 4731f0062e070f7541e0a1a8f39e9d69144c7404 | [log] [tgz] |
---|---|---|
author | Niels Möller <nisse@webrtc.org> | Fri May 03 09:34:24 2019 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Fri May 03 08:35:42 2019 +0000 |
tree | 5647b85d884494bfd12b9bc02d72f2e6bcfa17b0 | |
parent | da87648470e8674fcfaec25e06ed5b7633566dcc [diff] [blame] |
Delete deprecated PlatformThread looping Bug: webrtc:10594, webrtc:7187 Change-Id: Icba3a5cf6dbe817ead427c27645b3ad7bc8819be Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/134642 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27833}
diff --git a/modules/utility/source/process_thread_impl.cc b/modules/utility/source/process_thread_impl.cc index b3fbaef..472ff33 100644 --- a/modules/utility/source/process_thread_impl.cc +++ b/modules/utility/source/process_thread_impl.cc
@@ -162,8 +162,10 @@ } // static -bool ProcessThreadImpl::Run(void* obj) { - return static_cast<ProcessThreadImpl*>(obj)->Process(); +void ProcessThreadImpl::Run(void* obj) { + ProcessThreadImpl* impl = static_cast<ProcessThreadImpl*>(obj); + while (impl->Process()) { + } } bool ProcessThreadImpl::Process() {