summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-09-21 15:11:18 -0700
committerJeff Brown <jeffbrown@google.com>2010-09-21 15:26:51 -0700
commit61a25b249066baed0fdab0411f44a2c6b7292766 (patch)
treeee147fd5f817598b7374cc8004be51a863e8f62d /include
parentefed55f569786dc60e966003a67f8023bd1f92f2 (diff)
downloadframeworks_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.h1
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);
};