DMXGetScreenAttributes hangs with pthreads

Brian Paul brian.paul at tungstengraphics.com
Wed Feb 20 07:20:35 PST 2008


Roman Bednarek wrote:
> 
>    Hello
>     Quering about DMX screens with DMXGetScreenAttributes hangs when called 
> for a second screen, after XInitThreads was called and when program is 
> linked with pthreads. I have attached a small program to show the problem. 
> It hangs while getting second screen information. I have tested it on few 
> different systems and it always hanged.
> 
>     Roman Bednarek

If you're making Xlib calls from multiple threads, that's probably the 
issue.  Unfortunately, Xlib's threading support is rather unreliable in 
my experience.  Calling XInitThreads() doesn't seem to help either.

-Brian




More information about the xorg mailing list