Revert of Change ProcessThread's task type to be the one from TaskQueue. (patchset #3 id:80001 of https://codereview.webrtc.org/2016043003/ )
Reason for revert: Downstream issues Original issue's description: > Change ProcessThread's task type to be the one from TaskQueue. > ProcessThread will eventually be replaced by TaskQueue, so this is the first little step. > > BUG= > R=magjed@webrtc.org > > Committed: https://crrev.com/400a276c8a0b299190ff17a81edd8780a26d63d3 > Cr-Commit-Position: refs/heads/master@{#12952} TBR=magjed@webrtc.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG= Review-Url: https://codereview.webrtc.org/2020783003 Cr-Commit-Position: refs/heads/master@{#12953}
This commit is contained in:
@ -11,7 +11,6 @@
|
||||
#include "webrtc/modules/utility/source/process_thread_impl.h"
|
||||
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/task_queue.h"
|
||||
#include "webrtc/base/timeutils.h"
|
||||
#include "webrtc/modules/include/module.h"
|
||||
#include "webrtc/system_wrappers/include/logging.h"
|
||||
@ -120,7 +119,7 @@ void ProcessThreadImpl::WakeUp(Module* module) {
|
||||
wake_up_->Set();
|
||||
}
|
||||
|
||||
void ProcessThreadImpl::PostTask(std::unique_ptr<rtc::QueuedTask> task) {
|
||||
void ProcessThreadImpl::PostTask(std::unique_ptr<ProcessTask> task) {
|
||||
// Allowed to be called on any thread.
|
||||
{
|
||||
rtc::CritScope lock(&lock_);
|
||||
@ -219,7 +218,7 @@ bool ProcessThreadImpl::Process() {
|
||||
}
|
||||
|
||||
while (!queue_.empty()) {
|
||||
rtc::QueuedTask* task = queue_.front();
|
||||
ProcessTask* task = queue_.front();
|
||||
queue_.pop();
|
||||
lock_.Leave();
|
||||
task->Run();
|
||||
|
||||
Reference in New Issue
Block a user