commit | 415d8c38199e258dfce92cdb0c69e056b3b51ef8 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Tue Oct 05 15:35:37 2010 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Thu Oct 07 13:26:39 2010 -0700 |
tree | 5bf6d167a19b272f2a153df6010a7dd6f58a274f | |
parent | 930d6c3cd5ad387489eb1d35a38beeafe54166b6 [diff] |
Switch Looper back to using poll() instead of epoll(). Added a couple of micro-optimizations to avoid calling wake() unnecessarily and reduce JNI overhead slightly. Fixed a minor issue where we were not clearing the "next" field of Messages returned by the MessageQueue so the Message would hold on to its successor and potentially prevent the GC from collecting it if the message were leaked somehow. Change-Id: I488d29417ce0cdd7d0e447cda76ec978ef7f811c