aboutsummaryrefslogtreecommitdiffstats
path: root/android/looper-qemu.c
Commit message (Collapse)AuthorAgeFilesLines
* qemu-timer.c: rename qemu_timer_new_scale()David 'Digit' Turner2011-06-011-3/+3
| | | | | | | | | | | Get rid of qemu_timer_new() implementation, and update all callers to use qemu_timer_new_ms() or qemu_timer_new_ns() instead. Rename qemu_new_timer_scale() to qemu_new_timer() to follow upstream conventions. Change-Id: Id2c04f8597ec5026e02f87b3e2c5507920eb688e
* Add loopIo_poll() function.David 'Digit' Turner2011-04-281-0/+8
| | | | | | This will be used later by the goldfish network pipe implementation. Change-Id: I70c770efba15b2fd5ef7cc52450aa07163fa21f5
* Resubmit framebuffer service implementationVladimir Chtchetkine2010-12-201-2/+4
| | | | Change-Id: I184e27a1e8d88835bc9f0502eccfa3f64a7aaf9e
* Fix generic looper implementationDavid 'Digit' Turner2010-11-191-0/+11
| | | | | | | | | | | | | | | + allow looper_run() to return a value that indicates why it exited. + add looper_runWithDeadline() and looper_runWithTimeout() in the case where you want to run only for a limited time. looper_runWithTimeout(looper,0) can be used to poll the event state and return asap after firing all the callbacks. + fix iolooper_modify() Change-Id: Iba3b0385a7fd8d90f4f3334ebf313e79267f7b3d
* Implementation of event loop abstraction.David 'Digit' Turner2010-11-181-0/+402
This patch adds "android/looper.h" which provides an abstraction for event loops: - android/looper-qemu.c implements it on top of the QEMU main event loop. - android/looper-generic.c implements it on top of an IoLooper object. The main idea is to move the UI-related code to use the abstraction to handle timers and asynchronous (network) i/o. NOTE: Code compiles but has not been heavily tested. Change-Id: Ib6820c1b9a9950dc22449a332bc1b066a07af203