[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Spice-devel] [PATCH] server: don't call reds_stream_fr
From: |
Alon Levy |
Subject: |
Re: [Qemu-devel] [Spice-devel] [PATCH] server: don't call reds_stream_free from worker thread context |
Date: |
Mon, 5 Sep 2011 16:44:51 +0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Sep 05, 2011 at 03:29:39PM +0200, Gerd Hoffmann wrote:
> Hi,
>
> >I verified it still calls reds_stream_free from the worker thread, only
> >now the call itself is done in red_channel.c (via red_channel_disconnect
> >or something like that), which is called from red_worker.c
>
> Where the code in red_channel.c is now shared for all channel types?
> Hmm. That makes it a bit harder to change the workflow I guess ...
can do the usual (well, done once in hw/qxl.c) trick of
if (pthread_id() == stored_thread_id_from_main_channel_creation) {
write_to_pipe_read_in_main_thread
} else {
real_reds_stream_free();
}
>
> cheers,
> Gerd
>
> _______________________________________________
> Spice-devel mailing list
> address@hidden
> http://lists.freedesktop.org/mailman/listinfo/spice-devel