diff options
author | Lajos Molnar <lajos@google.com> | 2015-03-04 17:00:10 -0800 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-03-05 17:49:50 -0800 |
commit | 5804a76ac5f9f3c311f1bbbcc5ebdc8f8568ae14 (patch) | |
tree | 159660930b1c7f6300ea3054e47ce46719083a16 /include/media/stagefright/foundation/ALooperRoster.h | |
parent | c10e7f121d346b433c32d1c0d791c4b547cbe60e (diff) | |
download | frameworks_av-5804a76ac5f9f3c311f1bbbcc5ebdc8f8568ae14.zip frameworks_av-5804a76ac5f9f3c311f1bbbcc5ebdc8f8568ae14.tar.gz frameworks_av-5804a76ac5f9f3c311f1bbbcc5ebdc8f8568ae14.tar.bz2 |
stagefright: use handler instead of handler-id in AMessage
This avoids locking gLooperRoster mutex on post() and deliver().
Bug: 19607784
Change-Id: If6d9d7884dbb08fc390983bda896d223803476ba
Diffstat (limited to 'include/media/stagefright/foundation/ALooperRoster.h')
-rw-r--r-- | include/media/stagefright/foundation/ALooperRoster.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/media/stagefright/foundation/ALooperRoster.h b/include/media/stagefright/foundation/ALooperRoster.h index a0be8eb..63d52d9 100644 --- a/include/media/stagefright/foundation/ALooperRoster.h +++ b/include/media/stagefright/foundation/ALooperRoster.h @@ -33,15 +33,13 @@ struct ALooperRoster { void unregisterHandler(ALooper::handler_id handlerID); void unregisterStaleHandlers(); - status_t postMessage(const sp<AMessage> &msg, int64_t delayUs = 0); - void deliverMessage(const sp<AMessage> &msg); - status_t postAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response); void postReply(uint32_t replyID, const sp<AMessage> &reply); - sp<ALooper> findLooper(ALooper::handler_id handlerID); + void getHandlerAndLooper( + ALooper::handler_id handlerID, wp<AHandler> *handler, wp<ALooper> *looper); void dump(int fd, const Vector<String16>& args); |