History log of /system/libhidl/base/include/hidl/TaskRunner.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c03f943790b273c261e613099b7916e9c52f64e2 16-Aug-2017 Steven Moreland <smoreland@google.com> Create thread in passthrough objects lazily.

Also, moved SynchronizedQueue to not be exported
becaue it's not used outside of the library.

Notice, it would be cleaner to add variables to TaskRunner
and then use those to determine if it's initialized or not.
However, the ABI of TaskRunner is tied up in HIDL clients.
Perhaps in the future, we can consider renaming
SynchronizedQueue to be called TaskRunnerImpl.

Bug: 38039413
Test: boot + hidl_test

Change-Id: Id5dbffe0196447c7798ba89df0ff8c69b6796210
/system/libhidl/base/include/hidl/TaskRunner.h
0540d280036757c36fd52992c9986a7864cc794f 09-May-2017 Steven Moreland <smoreland@google.com> TaskRunner: move implementation to cpp

Test: hidl_test
Bug: 35710429
Change-Id: If5b6ece1bc08e27bb818eec0eae33c4a842106ad
/system/libhidl/base/include/hidl/TaskRunner.h
6f6675464c82fc796d72458d7268e28d759b997f 21-Mar-2017 Yifan Hong <elsk@google.com> TaskRunner starts the background thread only when needed

Test: libhidl_test
Test: hidl_test
Test: boots
Change-Id: I5b6de5cd4a475b0653102e8004953ba008288ab1
/system/libhidl/base/include/hidl/TaskRunner.h
8184c1220e120414ebd968930737daa563788fca 21-Mar-2017 Yifan Hong <elsk@google.com> Simplify the implementation of TaskRunner.

TestRunner used to hold the std::thread pointer and
a pointer to a boolean flag. Simplify them:

* std::thread* is not needed because detach() allows
the thread to run in background
* bool* is not needed; use a non-callable std::function
to indicate end of queue.
* Use std::shared_ptr instead of raw pointer for mQueue
to avoid weird pointer ownership management.

Test: libhidl_test
Test: hidl_test
Test: boots
Change-Id: I8fe7a6285bc537408ed559499951c17219e0df7f
/system/libhidl/base/include/hidl/TaskRunner.h
0a35139d24ae0071475adeae3e1370b8f8617f8f 21-Mar-2017 Yifan Hong <elsk@google.com> Move TaskRunner and SynchronizedQueue to details

Bug: 36433220
Test: compiles
Test: hidl_test
Test: libhidl_test
Change-Id: Ia48bf9abba293f177ec2f6cfab49da5422a59b82
/system/libhidl/base/include/hidl/TaskRunner.h
00f4a391c6f9a698bbcbbd05bf3d80e213c82884 16-Nov-2016 Yifan Hong <elsk@google.com> Split libhidl into base and transport.

libhidlbase contains "pure" classes that has nothing
to do with tranport level stuff. libhwbinder can now
safely depend on libhidlbase.

IBinder inheriting from IBase will be in a follow up
CL.

Bug: 32756130

Test: mma under hardware/interfaces
Test: hidl_test
Change-Id: Ie2bd80769df3816aab83789ba0d7fca9b5a2e52f
/system/libhidl/base/include/hidl/TaskRunner.h