diff options
author | Andreas Huber <andih@google.com> | 2010-08-30 13:29:51 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-30 13:29:51 -0700 |
commit | c5c4286bebffa4c2a9539c8e09207c3130351531 (patch) | |
tree | 70d993e063bfb0531773c736b2ef726daf1de1ac /include | |
parent | cc567f511a159867dcde8da824cab7464e687535 (diff) | |
parent | c28160fcf5fb785106e00fa5854929be8b49a98a (diff) | |
download | frameworks_av-c5c4286bebffa4c2a9539c8e09207c3130351531.zip frameworks_av-c5c4286bebffa4c2a9539c8e09207c3130351531.tar.gz frameworks_av-c5c4286bebffa4c2a9539c8e09207c3130351531.tar.bz2 |
am 6df6d606: am df992ac9: Merge "ALoopers can now be named (useful to distinguish threads)." into gingerbread
Merge commit '6df6d60681be9d524ce7fc07f2511008de424d27'
* commit '6df6d60681be9d524ce7fc07f2511008de424d27':
ALoopers can now be named (useful to distinguish threads).
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; |