diff options
| author | Andreas Huber <andih@google.com> | 2010-08-27 15:21:07 -0700 |
|---|---|---|
| committer | Andreas Huber <andih@google.com> | 2010-08-27 15:21:07 -0700 |
| commit | c4e0b70a21fadb47d70955c71fc31ce1473da925 (patch) | |
| tree | 138af40209a99a4dc3d34ad49855cba1aa9ed132 /include | |
| parent | 577615c98e390f8417e07844d04304eac5b0e911 (diff) | |
| download | frameworks_base-c4e0b70a21fadb47d70955c71fc31ce1473da925.zip frameworks_base-c4e0b70a21fadb47d70955c71fc31ce1473da925.tar.gz frameworks_base-c4e0b70a21fadb47d70955c71fc31ce1473da925.tar.bz2 | |
ALoopers can now be named (useful to distinguish threads).
Change-Id: Ieabaddb2e3a9e3a7a5bc36e55cd0721b60dbd50e
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; |
