X display locking

Torsten Jager t.jager at gmx.de
Thu Mar 7 06:31:02 PST 2013


Hello!

What is the proper usage of XLockDisplay () / XUnlockDisplay ()
when an application has multiple threads using

  * "normal" Xlib functions
  * Xitk functions
  * libGL and/or
  * libvdpau ?

On my machine (libX11 1.4.0) bracketing all 4 seems to be necessary
to avoid lockups and stack corruption. At least doing so does
work here.

Hovever, on my mate's box the same code traps both libGL and
libvdepau into an infinite sched_yield () polling loop.

What am I doing wrong?

Torsten


More information about the xorg mailing list