Re: [PATCH v2 2/3] tests: create and use a template file for events

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

 



On Fri, Dec 18, 2015 at 06:41:57AM -0500, Frediano Ziglio wrote:
> The patch is this anyway
> http://cgit.freedesktop.org/~fziglio/spice-server/commit/?id=452edd8f7aa25fc1e69b6c2a747f59f58ab07f32
> 
> So could be your patch can work.
> However the main idea of my patch was not to fix this "strange" code but
> to have a single source for the event loop with better (and automated)
> way of testing it.

Which "strange" code are you referring to ? The one from this cgit link,
or the one modified by my patch?
I don't think assuming that 'opaque' will always be a RedWorker instance
is a good assumption to make, so this is a NACK from me for this patch
as it is now.

> And still I would prefer a simple __thread variable.

I prefer the more explicit get_main_context() calls as it's obvious
something is going on. With __thread, you had to dig up to the
declaration of the variable to realize there is some magic involved.

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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]