qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] experience with SDL2, event loop & main thread


From: Fam Zheng
Subject: Re: [Qemu-devel] experience with SDL2, event loop & main thread
Date: Mon, 12 Dec 2016 22:51:17 +0800
User-agent: Mutt/1.7.1 (2016-10-04)

On Mon, 12/12 15:22, Liviu Ionescu wrote:
> so, back to square one; any suggestion on how to avoid the periodic timer
> required to poll SDL system events?

Good question, I've missed that!

Sadly I don't find it possible. The main thread of QEMU has to run the glib
event loop so it cannot block on SDL_WaitEvent().

Ideally SDL should provide an API to get a pollable fd (or a set of) to allow
such types of integration, not much can be done from QEMU side in its current
form.

Fam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]