Should I share the X server connection?

Francisco Javier Cabello Torres fjcabello at visual-tools.com
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.

Thanks

Paco

-- 
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: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBBBE5820
--------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20101111/e96f48ab/attachment.html>


More information about the xorg mailing list