Motif & threads

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Motif & threads

Submitted by Anonymous on Wed, 03/14/2001 - 12:38. Developers
I have a main program who creates 2 threads at different priority.The first creates the GUI while the second updates some widgets(textfield).The second thread is blocked with a semaphore who is unblocked every 20 seconds.Casually the programs write Xlib unexpected async reply and the second thread don`t work.How is possible syncronize the two threads?I know that only a graphic thread can access or make graphic calls.Please sena me a small example that permits me to solve my problem.
Best Regards
Paolo Zaccone

platform

LynxOs 2.4.4 with Motif 1.2 and X11R6

emailpzaccone@aleniasystems.finmeccanica.it

ICS_support

And, yet, you have two graphics-related threads. I think the first thing to do is to upgrade to Motif 2.0, which supports the threads, and then to be sure to initialize them in your X11R6 calls. Alternatively, you can limit graphics functionality to one thread.

There is more information in the comp.windows.x FAQ on http//www.x.org about this problem.