[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 20:28:03 +0800 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Mon, 12/12 13:27, Liviu Ionescu wrote:
>
> > On 12 Dec 2016, at 12:36, Fam Zheng <address@hidden> wrote:
> >
> > an EventNotifier in the main thread which is notified by the vCPU
> > thread upon a new graphics operation?
>
> the idea of using notifications is ok, but I could not figure out what api to
> use to implement it. can you provide more details?
Take a look at event_notifier_set_handler() and event_notifier_set().
Or alternatively (whichever works better for you, I don't know): qemu_bh_new()
and qemu_bh_schedule().
Both can register a callback that will be called in main loop once fired.
Fam
- [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/10
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/11
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Daniel P. Berrange, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread,
Fam Zheng <=
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/13
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/13