Re: [spice-gtk 2/3] coroutine: Track idle notification/emission in struct coroutine

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

 



On Mon, Feb 23, 2015 at 1:46 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
> I'm not exactly sure what you are suggesting me to do here.

You could have a coroutine protocol to share data owned by the
coroutine, for example:

<<
ptr = coroutine_resume (co)

>> coroutine
ptr = alloc shared struct
yield (ptr)


This only depends on coroutine usage/patterns/protocol.

I wouldn't recommend this though in most cases, since it requires some
kind of synchronization with the coroutine for accessing the
structure.

-- 
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]