lrp@math.camelot.DUPONTEOP.COM (Larry R. Paulhus-Software Development) (05/30/91)
Help, I am attempting to integrate X and Motif with a third party object oriented graphics package. I need the GUI process to check the IPC queue periodically and I was planning to use XtAddWorkProc (or XtAppAddWorkProc) to add a process to do just that. My problem is this third party o. o. graphics package doesn't call XtMainLoop. Instead they have written their own version of MainLoop that calls XtNextEvent and then XtDispatchEvent. My question is: Does XtAddWorkProc work on the XtNextEvent call (in the same manner as XtAddTimeOut) or is it working at the XtMainLoop level. I have asked the o. o. graphics vendor and they do not know. They suggested I use XtAddTimeOut instead. I could, but I would prefer to avoid the overhead of setting a new TimeOut at the end of the function call. Please mail your responses to me at lrp@mv.dupont.com (the mail address above is different since we get our news feed from a different source than our mail). I will forward responses to anyone who requests them or post a summary if there is that much interest in my problem. Thank you for your help. Larry Paulhus DuPont EOP, Morrisville, NC "My opinions are just that, mine. DuPont doesn't pay me enough to express their's"
tomt@maui.coral.COM (Tom Tulinsky) (06/03/91)
) ) Help, I am attempting to integrate X and Motif with a third party object ) oriented graphics package. I need the GUI process to check the IPC queue ) periodically and I was planning to use XtAddWorkProc (or XtAppAddWorkProc) ) to add a process to do just that. My problem is this third party o. o. . . . ) asked the o. o. graphics vendor and they do not know. They suggested I use ) XtAddTimeOut instead. I could, but I would prefer to avoid the overhead of ) setting a new TimeOut at the end of the function call. My experience with XtAddWorkProc was that the workproc was called continuously whenever the process was otherwise idle, using 100% of the cpu at all times. This doesn't slow down the process it's in, but it does slow down other processes. We switched to a timeout. Coral * ** Tom Tulinsky 508 460-6010 * ** Coral Network Corporation fax 508 481-6258 * ** 734 Forest St net: tomt@coral.com *** Marlboro, MA 01752 ** U S A ********* Overheard in a BART station: NETWORKS "I was the only NORM there!"