Computing.Net > Forums > Programming > Motif timers

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Motif timers

Reply to Message Icon

Original Message
Name: Alex
Date: October 28, 2002 at 07:34:40 Pacific
Subject: Motif timers
OS: HPUX 10.20
CPU/Ram: J-6000
Comment:

In one of our applications we extencively use motif timers. The problem is that sometimes callbacks functions are not invoked. Does any one know any problems with Motif 1.2 timers and are there any fixes?



Report Offensive Message For Removal


Response Number 1
Name: cup
Date: October 28, 2002 at 22:24:36 Pacific
Reply: (edit)

As far as I know, there are no problems with Motif 1.2 timers. Normally, the problem is with the program and how the timers are used. Motif is single threaded so basically, all Motif calls should be on the same thread. If one of the callbacks is messing with the X-message loop, the the timer is sometimes missed.

If the timer calls a work procedure, there may be problems as work procedures are stacked. Only when the last one in finishes does the previous one run. If it is being used with work procedures, make up an internal queueing mechanism and keep to one work procedure.

Try re-invoking the timer at the end of the callback instead of at the start.


Report Offensive Follow Up For Removal

Response Number 2
Name: Alex
Date: November 5, 2002 at 12:48:22 Pacific
Reply: (edit)

Thanks for reply.
I contacted HP and here is what I learned from them: The timers added by XtAppAddTimeOut may not be invoked at all the times. HP had a patch for this problem and following cumulative patches. By the way it is common not only for HPUX


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge
Poll History




Data Recovery Software