From 61a25b249066baed0fdab0411f44a2c6b7292766 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Tue, 21 Sep 2010 15:11:18 -0700 Subject: 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 --- include/utils/Looper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); }; -- cgit v1.1