From a814c1fdc2acf0ed2ee3b175110f6039be7c4873 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Fri, 27 Aug 2010 15:21:07 -0700 Subject: ALoopers can now be named (useful to distinguish threads). Change-Id: Ieabaddb2e3a9e3a7a5bc36e55cd0721b60dbd50e --- include/media/stagefright/foundation/ALooper.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/media/stagefright/foundation/ALooper.h b/include/media/stagefright/foundation/ALooper.h index 153ead9..70e0c5e 100644 --- a/include/media/stagefright/foundation/ALooper.h +++ b/include/media/stagefright/foundation/ALooper.h @@ -19,6 +19,7 @@ #define A_LOOPER_H_ #include +#include #include #include #include @@ -36,6 +37,9 @@ struct ALooper : public RefBase { ALooper(); + // Takes effect in a subsequent call to start(). + void setName(const char *name); + handler_id registerHandler(const sp &handler); void unregisterHandler(handler_id handlerID); @@ -63,6 +67,8 @@ private: Mutex mLock; Condition mQueueChangedCondition; + AString mName; + List mEventQueue; struct LooperThread; -- cgit v1.1