[PATCH spice-streaming-agent v2 0/4] Add a SpiceStream class for stream access

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

 



From: Christophe de Dinechin <dinechin@xxxxxxxxxx>

Add a SpiceStream that owns the actual stream.
This has several benefits:

1. It makes it possible to use proper RAII to deal
   with the lifetime of the stream file descriptor

2. It opens the door for dealing with multiple streams

3. It removes one global with associated race conditions

A pre-existing race conditions when creating the thread
that processes cursor data is eliminated as a side effect.

Christophe de Dinechin (4):
  style: Remove useless whitespace
  style: Use C++ style for declaring structs
  Use RAII to cleanup stream in case of exception or return
  Move all stream-related functions within SpiceStream class

 src/spice-streaming-agent.cpp | 96 +++++++++++++++++++++++++------------------
 1 file changed, 55 insertions(+), 41 deletions(-)

-- 
2.13.5 (Apple Git-94)

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]