Re: [Spice-devel] [PATCH v3 8/9] Handle GL_DRAW messages

2016-02-09 Thread Frediano Ziglio
> > Hi > > On Thu, Feb 4, 2016 at 4:25 PM, Frediano Ziglio wrote: > > Here you can have a race condition. > > If red_dispatcher_async_complete wake up the Qemu thread before reset > > gl_draw_async it could be possible Qemu will try to send another draw > > finding gl_draw_async not NULL and ret

Re: [Spice-devel] [PATCH v3 8/9] Handle GL_DRAW messages

2016-02-09 Thread Marc-André Lureau
Hi On Thu, Feb 4, 2016 at 4:25 PM, Frediano Ziglio wrote: > Here you can have a race condition. > If red_dispatcher_async_complete wake up the Qemu thread before reset > gl_draw_async it could be possible Qemu will try to send another draw > finding gl_draw_async not NULL and returning without do

Re: [Spice-devel] [PATCH v3 8/9] Handle GL_DRAW messages

2016-02-04 Thread Frediano Ziglio
> > Create an async, and marshall the GL_DRAW message. Count number of > clients, and wait until gl_draw_async_count is 0 to complete the async. > The count is going to be updated in the following patch when the client > is done with the draw. > > Signed-off-by: Marc-André Lureau > --- > server

Re: [Spice-devel] [PATCH v3 8/9] Handle GL_DRAW messages

2016-02-04 Thread Frediano Ziglio
> > Create an async, and marshall the GL_DRAW message. Count number of > clients, and wait until gl_draw_async_count is 0 to complete the async. > The count is going to be updated in the following patch when the client > is done with the draw. > > Signed-off-by: Marc-André Lureau > --- > server

[Spice-devel] [PATCH v3 8/9] Handle GL_DRAW messages

2016-01-22 Thread Marc-André Lureau
Create an async, and marshall the GL_DRAW message. Count number of clients, and wait until gl_draw_async_count is 0 to complete the async. The count is going to be updated in the following patch when the client is done with the draw. Signed-off-by: Marc-André Lureau --- server/dcc-send.c