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 | 134b4ae90103a7b205cd84d0491a4868cb102a7c (patch) | |
| tree | 3f6a8d6cef9954bcabc05cedda8fc33596d084f7 /include | |
| parent | 34d3aeaf7f5dd744f46220f7730913468256ae9c (diff) | |
| download | frameworks_base-134b4ae90103a7b205cd84d0491a4868cb102a7c.zip frameworks_base-134b4ae90103a7b205cd84d0491a4868cb102a7c.tar.gz frameworks_base-134b4ae90103a7b205cd84d0491a4868cb102a7c.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); }; |
