diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-09-21 15:11:18 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-09-21 15:26:51 -0700 |
commit | 61a25b249066baed0fdab0411f44a2c6b7292766 (patch) | |
tree | ee147fd5f817598b7374cc8004be51a863e8f62d /include | |
parent | efed55f569786dc60e966003a67f8023bd1f92f2 (diff) | |
download | frameworks_native-61a25b249066baed0fdab0411f44a2c6b7292766.zip frameworks_native-61a25b249066baed0fdab0411f44a2c6b7292766.tar.gz frameworks_native-61a25b249066baed0fdab0411f44a2c6b7292766.tar.bz2 |
Looper: use pthread_once for TLS key initialization.
Also fix a Valgrind complaint by zeroing out the entire epoll event
struct since otherwise the data field union would be partly
uninitialized (but not in a harmful way).
Change-Id: I2091ce517e87fcad7c9caf90e2c5e4854a7ca465
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/Looper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/utils/Looper.h b/include/utils/Looper.h index 7d90866..3f00b78 100644 --- a/include/utils/Looper.h +++ b/include/utils/Looper.h @@ -205,6 +205,7 @@ private: int pollInner(int timeoutMillis); + static void initTLSKey(); static void threadDestructor(void *st); }; |