commit | d8e58bba4b9a77aaa163efc8f80e7b30f449cdfc | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu May 03 14:21:37 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu May 03 14:21:37 2018 -0700 |
tree | a74e66f218d0c6888d9577faea9bf25213911772 | |
parent | c629e6644787a6600f29fd8717e357cafd0806bd [diff] | |
parent | f3b1f0dac3572e4d79f65fbfbfa3fc8fcf7305f7 [diff] |
Merge "HidlBinderSupport: addPostCommandTask" am: f3b1f0dac3 Change-Id: I9381c79e41a02d43f586a28bd12d1558608fb459
diff --git a/transport/HidlBinderSupport.cpp b/transport/HidlBinderSupport.cpp index d14887f..d884544 100644 --- a/transport/HidlBinderSupport.cpp +++ b/transport/HidlBinderSupport.cpp
@@ -219,5 +219,9 @@ return IPCThreadState::self()->handlePolledCommands(); } +void addPostCommandTask(const std::function<void(void)> task) { + IPCThreadState::self()->addPostCommandTask(task); +} + } // namespace hardware } // namespace android
diff --git a/transport/include/hidl/HidlBinderSupport.h b/transport/include/hidl/HidlBinderSupport.h index 9759af1..1545946 100644 --- a/transport/include/hidl/HidlBinderSupport.h +++ b/transport/include/hidl/HidlBinderSupport.h
@@ -374,6 +374,8 @@ int setupBinderPolling(); status_t handleBinderPoll(); +void addPostCommandTask(const std::function<void(void)> task); + } // namespace hardware } // namespace android