commit | a162c4351926285892214b0726aaf07f0631dc72 | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@google.com> | Wed Oct 27 14:53:57 2010 -0400 |
committer | Mike Lockwood <lockwood@google.com> | Wed Oct 27 15:18:59 2010 -0400 |
tree | ec62d24210cc27a028b7b09757ddb2ec3d5411dc | |
parent | 0b602e40b8dc1f134ed94f7a781b1be2b88e760d [diff] |
Fix threading problem that resulted in the wakelock being held too long. In some circumstances we were calling wait after we had been signalled, causing us to wait until we are signalled again (while holding a wakelock). Now we only want to wait in the deferred action thread if no events are pending and only hold the wakelock while not waiting. BUG: 3127617 Change-Id: I4c6886b2bbdcbcb2c0cf348d89bc5408f0d875b9 Signed-off-by: Mike Lockwood <lockwood@google.com>