diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-09-07 15:28:30 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-09-07 15:46:55 -0700 |
commit | 42c03e579aade011b451e2a13ea3f44a2ef0056a (patch) | |
tree | 1716fbd88e2beb816d303c3d3fa0ca1785b8db61 /libs/gui/SensorEventQueue.cpp | |
parent | 6e86915e8f5dfffa60ae5d1a4ca9aa74912fd026 (diff) |
Modify native ALooper to take an explicit ident.
The ALooper API now uses an explicit "identifier" for the integer
that is returned rather than implicitly using the fd. This allows
the APIs that had the fd to be a little more sane.
Change-Id: I8507f535ad484c0bdc4a1bd016d87bb09acd7ff0
Diffstat (limited to 'libs/gui/SensorEventQueue.cpp')
-rw-r--r-- | libs/gui/SensorEventQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/SensorEventQueue.cpp b/libs/gui/SensorEventQueue.cpp index 3396f25e714a..7eb6da5a6e9b 100644 --- a/libs/gui/SensorEventQueue.cpp +++ b/libs/gui/SensorEventQueue.cpp @@ -86,7 +86,7 @@ sp<PollLoop> SensorEventQueue::getPollLoop() const Mutex::Autolock _l(mLock); if (mPollLoop == 0) { mPollLoop = new PollLoop(true); - mPollLoop->setCallback(getFd(), POLLIN, NULL, NULL); + mPollLoop->setCallback(getFd(), getFd(), POLLIN, NULL, NULL); } return mPollLoop; } |