[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xlibs not threadsafe?



Isaac Richards <ijr@po.cwru.edu> writes:

> Was the latest ver of Xfree (3.3.2.1-1) not compiled to be threadsafe?  I'm
> getting the following error in all threaded X applications..
> 
> Xlib: unexpected async reply (sequence 0xab1)!
> 
> This behavior started after upgrading to 3.3.2.1-1, everything
> worked fine with 3.3.2-4

Try this program.  It's what I use for testing...

  #include <pthread.h>
  #include <iostream.h>
  #include <X11/Xthreads.h>
  #include <X11/Intrinsic.h>

  int main(int argc, char *argv[]) {
    if(XInitThreads()) {
      cout << "Threads: supported level 1.\n";
      if(XtToolkitThreadInitialize()) {
        cout << "Threads: supported level 2.\n";
      } else {
        cout << "Threads: unsupported level 2.\n";
      }
    } else {
      cout << "Threads: unsupported level 1.\n";
    }
  }

-- 
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94  53 2B 97 F5 D6 4E 39 30


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: