diff options
author | Andreas Huber <andih@google.com> | 2010-08-30 10:28:24 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-30 10:28:24 -0700 |
commit | c01ec02269e3bf1fd57620149085407bf6750447 (patch) | |
tree | 38b18040d9e215c703a1688f52912e98d6f139e2 /include | |
parent | 824c9ff4a55e86faae4f8f158977329909cbfaf6 (diff) | |
parent | a814c1fdc2acf0ed2ee3b175110f6039be7c4873 (diff) | |
download | frameworks_av-c01ec02269e3bf1fd57620149085407bf6750447.zip frameworks_av-c01ec02269e3bf1fd57620149085407bf6750447.tar.gz frameworks_av-c01ec02269e3bf1fd57620149085407bf6750447.tar.bz2 |
Merge "ALoopers can now be named (useful to distinguish threads)." into gingerbread
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/foundation/ALooper.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <media/stagefright/foundation/ABase.h> +#include <media/stagefright/foundation/AString.h> #include <utils/Errors.h> #include <utils/KeyedVector.h> #include <utils/List.h> @@ -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<AHandler> &handler); void unregisterHandler(handler_id handlerID); @@ -63,6 +67,8 @@ private: Mutex mLock; Condition mQueueChangedCondition; + AString mName; + List<Event> mEventQueue; struct LooperThread; |