commit | 8d15c74d50fd01d6e63970aadd261a9d3bed27e7 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Tue Oct 05 15:35:37 2010 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:55 2013 -0700 |
tree | c83dbedf5e1e2aa63c4b19c45998bcfe84aa3e21 | |
parent | bf2ad6dd136ba456cd48f15da59828e2f6743dd6 [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