Re: [PATCH v4 11/16] UsbDevicemanager: Track device disconnection operations in progress

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

 



Please explain why you want to do that in the commit log (I guess same
explanation as in the commit adding this redirecting state, during
device disconnection, unwanted hotplug events may happen, which we need
to ignore?)

On Sun, Aug 16, 2015 at 03:35:48PM +0300, Dmitry Fleytman wrote:
> From: Kirill Moizik <kmoizik@xxxxxxxxxx>
> 
> Signed-off-by: Kirill Moizik <kmoizik@xxxxxxxxxx>
> Signed-off-by: Dmitry Fleytman <dfleytma@xxxxxxxxxx>
> ---
>  src/usb-device-manager.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
> index 317e3d0..99ff4d9 100644
> --- a/src/usb-device-manager.c
> +++ b/src/usb-device-manager.c
> @@ -1705,6 +1705,8 @@ void _disconnect_device_async_cb(GObject *gobject,
>      }
>  #endif
>  
> +    _set_redirecting(self, FALSE);
> +

Doing that in the main thread with g_idle_add() would feel safer, or is
this already guaranteed to run in the main thread?

Christophe

Attachment: pgpBoLXQAKOql.pgp
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]