Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Can output of a pipe be read in "realtime"?

I have an app (using C/Motif on Unix) where I need to run a routine which can take minutes of processing time.  The problem of course is that the X events get blocked while this routine is running.  Can I use XtAppProcessEvent, called periodically during the long routine, to keep the GUI alive?  Will this save me from having to do a fork?
0
jimdgar
Asked:
jimdgar
1 Solution
 
ahoffmannCommented:
your routine should send an event to tell the GUI (X) that it finished, or whatever.
By the way, your title uses "realtime": how you're aware that X is far away from "relatime"
0
 
jimdgarAuthor Commented:
ahoffman,

Can you elaborate on "send an event"?  I've since resolved this question myself, and I don't believe your vague answer warrants the points.
0
 
moduloCommented:
PAQed with points refunded (100)

modulo
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now