diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-12-20 08:28:03 -0800 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-12-20 08:28:03 -0800 |
commit | e95660aadc669784406d5f5a867988b8ecc2ed0d (patch) | |
tree | 480b3feaa14f6d392ceed62dba9cd0334dcba48d /android/looper-qemu.c | |
parent | aec5741a217d98db6007219c4e28dc24d3ecdb03 (diff) | |
download | external_qemu-e95660aadc669784406d5f5a867988b8ecc2ed0d.zip external_qemu-e95660aadc669784406d5f5a867988b8ecc2ed0d.tar.gz external_qemu-e95660aadc669784406d5f5a867988b8ecc2ed0d.tar.bz2 |
Resubmit framebuffer service implementation
Change-Id: I184e27a1e8d88835bc9f0502eccfa3f64a7aaf9e
Diffstat (limited to 'android/looper-qemu.c')
-rw-r--r-- | android/looper-qemu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/android/looper-qemu.c b/android/looper-qemu.c index 400f7c1..cce0bfa 100644 --- a/android/looper-qemu.c +++ b/android/looper-qemu.c @@ -199,13 +199,15 @@ qloopio_modify(QLoopIo* io, unsigned wanted) /* if we're pending, but the new mask doesn't care about * out state, remove from pending list */ - if (io->ready && (io->ready & wanted) == 0) + if (io->ready && (io->ready & wanted) == 0) { qloopio_removePending(io); + } /* recompute read/write handlers for QEMU */ IOHandler* fd_read = (wanted & LOOP_IO_READ) ? qloopio_handleRead : NULL; IOHandler* fd_write = (wanted & LOOP_IO_WRITE) ? qloopio_handleWrite : NULL; qemu_set_fd_handler(io->fd, fd_read, fd_write, io); + io->wanted = wanted; } static void @@ -312,7 +314,7 @@ qlooper_addPendingIo(QLooper* looper, QLoopIo* io) qemu_bh_schedule(looper->io_bh); } io->pendingNext = looper->io_pending; - looper->io_pending = io->pendingNext; + looper->io_pending = io; } static void |