From 84ec4e14f66f47e9339aa44ec69a3ca7c95106dd Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Tue, 13 Nov 2018 11:26:23 -0800 Subject: Migrate broadcast radio default HAL to the new logging API. Bug: 112540729 Test: flash and boot Change-Id: I18d8b508971cd9a9b7b2c9c221674d862ff351d6 --- broadcastradio/common/utils/WorkerThread.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'broadcastradio/common/utils/WorkerThread.cpp') diff --git a/broadcastradio/common/utils/WorkerThread.cpp b/broadcastradio/common/utils/WorkerThread.cpp index bfcbb390e8..31f4d3f83e 100644 --- a/broadcastradio/common/utils/WorkerThread.cpp +++ b/broadcastradio/common/utils/WorkerThread.cpp @@ -14,13 +14,8 @@ * limitations under the License. */ -#define LOG_TAG "WorkerThread" -//#define LOG_NDEBUG 0 - #include -#include - namespace android { using std::chrono::milliseconds; @@ -39,7 +34,6 @@ bool operator<(const WorkerThread::Task& lhs, const WorkerThread::Task& rhs) { WorkerThread::WorkerThread() : mIsTerminating(false), mThread(&WorkerThread::threadLoop, this) {} WorkerThread::~WorkerThread() { - ALOGV("%s", __func__); { lock_guard lk(mMut); mIsTerminating = true; @@ -49,8 +43,6 @@ WorkerThread::~WorkerThread() { } void WorkerThread::schedule(function task, milliseconds delay) { - ALOGV("%s", __func__); - auto when = steady_clock::now() + delay; lock_guard lk(mMut); @@ -59,14 +51,11 @@ void WorkerThread::schedule(function task, milliseconds delay) { } void WorkerThread::cancelAll() { - ALOGV("%s", __func__); - lock_guard lk(mMut); priority_queue().swap(mTasks); // empty queue } void WorkerThread::threadLoop() { - ALOGV("%s", __func__); while (!mIsTerminating) { unique_lock lk(mMut); if (mTasks.empty()) { -- cgit v1.2.3