Publish rtc::QueuedTask in api as webrtc::QueuedTask
Bug: webrtc:10191 Change-Id: I7dcba28615c2f3e44442be410dedde15f5fb1deb Reviewed-on: https://webrtc-review.googlesource.com/c/113502 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26244}
This commit is contained in:
committed by
Commit Bot
parent
645df9e3b5
commit
959e9b6b57
@ -13,15 +13,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#if defined(WEBRTC_WIN)
|
||||
// Due to a bug in the std::unique_ptr implementation that ships with MSVS,
|
||||
// we need the full definition of QueuedTask, on Windows.
|
||||
#include "rtc_base/task_queue.h"
|
||||
#else
|
||||
namespace rtc {
|
||||
class QueuedTask;
|
||||
}
|
||||
#endif
|
||||
#include "api/task_queue/queued_task.h"
|
||||
|
||||
namespace rtc {
|
||||
class Location;
|
||||
@ -59,7 +51,7 @@ class ProcessThread {
|
||||
// construction thread of the ProcessThread instance, if the task did not
|
||||
// get a chance to run (e.g. posting the task while shutting down or when
|
||||
// the thread never runs).
|
||||
virtual void PostTask(std::unique_ptr<rtc::QueuedTask> task) = 0;
|
||||
virtual void PostTask(std::unique_ptr<QueuedTask> task) = 0;
|
||||
|
||||
// Adds a module that will start to receive callbacks on the worker thread.
|
||||
// Can be called from any thread.
|
||||
|
||||
Reference in New Issue
Block a user