Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!bacchus.pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Processing events "normally" outside XtMainLoop() Keywords: XEvent, XtProcessEvent, event Message-ID: <1990Sep11.125955@wsl.dec.com> Date: 11 Sep 90 19:59:55 GMT References: <15762@know.pws.bull.com> Sender: news@wrl.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 15 In article <15762@know.pws.bull.com>, mwolf@pws.bull.com (Mary-Anne Wolf) writes: |> I also want to be able to do things in other windows while it is running. Sounds like you want to context switch in and out of your long-running function. One easy way to do this is to put it in a separate UNIX process (or the equivalent in your OS) and let the OS do the switching. Alternatively, if you have support for it, you can use two threads within the same process, but you have to make sure your libraries support multiple threads. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee