OSDN Git Service

Looper: Drop default parameters in favor of a safer overload.
authorJeff Brown <jeffbrown@google.com>
Fri, 17 Sep 2010 01:28:12 +0000 (18:28 -0700)
committerJeff Brown <jeffbrown@google.com>
Fri, 17 Sep 2010 01:51:15 +0000 (18:51 -0700)
commitb0619e8ad8e258f3e87a78a3a23c353d98efafa7
tree4bb7bce0d27d4915547736ae7c0d6ae3bddb9979
parent888db4d60bb19033f5d7a20cfd2ba5c318c7d74f
Looper: Drop default parameters in favor of a safer overload.

The idea is that if you're writing code that wants fd/events/data on
return from pollOnce() / pollAll() you should really pass in all of those
arguments.  When I changed the Looper API earlier, it was difficult
to ensure that all callers were passing the right parameters since they
were relying on default parameters to some degree so usage mistakes
would not have been caught by the compiler.

Change-Id: I1f2812894270aaf1515017ac1616b6b312d9b565
include/utils/Looper.h