Merge "TaskRunner: move implementation to cpp" am: 13732d54ff
am: 5eb37088c5
Change-Id: I5424c020466e3ae9df9862b483f99a80ffa51c7d
diff --git a/base/TaskRunner.cpp b/base/TaskRunner.cpp
index 33117e7..782b40b 100644
--- a/base/TaskRunner.cpp
+++ b/base/TaskRunner.cpp
@@ -43,6 +43,10 @@
}
}
+bool TaskRunner::push(const Task &t) {
+ return (mQueue != nullptr) && (!!t) && this->mQueue->push(t);
+}
+
} // namespace details
} // namespace hardware
} // namespace android
diff --git a/base/include/hidl/TaskRunner.h b/base/include/hidl/TaskRunner.h
index 8ecceca..28ea01c 100644
--- a/base/include/hidl/TaskRunner.h
+++ b/base/include/hidl/TaskRunner.h
@@ -52,9 +52,7 @@
* Add a task. Return true if successful, false if
* the queue's size exceeds limit or t doesn't contain a callable target.
*/
- inline bool push(const Task &t) {
- return (mQueue != nullptr) && (!!t) && this->mQueue->push(t);
- }
+ bool push(const Task &t);
private:
std::shared_ptr<SynchronizedQueue<Task>> mQueue;