xdemos: Fix sharedtex_mt.
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Tue, 17 Mar 2009 10:33:20 +0000 (11:33 +0100)
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>
Tue, 17 Mar 2009 10:38:00 +0000 (11:38 +0100)
commit1d2b14cf56970fe42b8f32ecfc8adce91f5248e3
tree5c81f67cc69784829f4304d77b1dc6d6211237e0
parent7f1062584ec1932ff8bdf661da3965fc068e0462
xdemos: Fix sharedtex_mt.

1) Don't allow multiple threads sharing current context,
   even if they are mutex protected.
2) Remove all XLockDisplay(), XUnLockDisplay() calls, as they were
   only workarounds for xcb.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
progs/xdemos/sharedtex_mt.c