Should I share the X server connection?

Francisco Javier Cabello Torres fjcabello at
Thu Nov 11 08:00:36 PST 2010

Hi All,

I am developping a C application which show several video streams. I have a
thread per video stream
and I update each image calling to XvShmPutImage. I use a different Xv port
in each thread. Currently
I am using a X server connection per thread. Should I share it?
Should I call to XLockDisplay/XUnLockDisplay? As soon as I am not sharing
the connection, I guess I shouldn't lock.



Francisco Javier Cabello Torres
Investigación y Desarrollo
Research and Development
V I S U A L   T O O L S
C/Isla Graciosa, 1.
28034 Madrid, Spain.
Telephone: + 34 91 729 48 44
Fax: +34 91 358 52 36
Clave pública:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xorg mailing list