Re: Child processes in LyX

2005-01-30 Thread Angus Leeming
Andreas Vox wrote: In general, yes. For example, you might imaginge a "command line parser" (Have I mentioned that I've written such a beast I think it's the frst time, this year. ;-) Angus (cooking golden pork with ginger and garlic and soy sauce and currently crying lots from the vapours from

Re: Child processes in LyX

2005-01-30 Thread Andreas Vox
Angus Leeming <[EMAIL PROTECTED]> writes: > In general, yes. For example, you might imaginge a "command line parser" ... > (Have I mentioned that I've written such a beast I think it's the frst time, this year. /Andreas

Re: Child processes in LyX

2005-01-30 Thread Asger Ottar Alstrup
Angus Leeming wrote: Asger Ottar Alstrup wrote: Angus Leeming wrote: child::process_demultiplexor::instance().flush(); process_demultiplexor and flush are strange names, which I do not [...complicated explanations for complicated names...] > Make sense now? Those are terrible names, still

Re: Child processes in LyX

2005-01-30 Thread Angus Leeming
Asger Ottar Alstrup wrote: Angus Leeming wrote: That can be built on top of what we've got here: if (some_timeout) child::process_demultiplexor::instance().flush(); process_demultiplexor and flush are strange names, which I do not understand. Can you come up with something better than

Re: Child processes in LyX

2005-01-30 Thread Asger Ottar Alstrup
Angus Leeming wrote: That can be built on top of what we've got here: if (some_timeout) child::process_demultiplexor::instance().flush(); process_demultiplexor and flush are strange names, which I do not understand. Can you come up with something better than that? Sure. But maybe the

Re: Child processes in LyX

2005-01-30 Thread Angus Leeming
Asger Ottar Alstrup wrote: Well, it seems you have already implemented most of this stuff. I think it looks great. Did you try to shove any of it into LyX? Regarding determining exiting on Windows: In addition to the thread, it is also common to just add a timer and poll check once in a while. T

Re: Child processes in LyX

2005-01-30 Thread Angus Leeming
Andre Poenitz wrote: On Fri, Jan 28, 2005 at 06:33:44PM +, Angus Leeming wrote: I thought I'd post where I've got to with OS-independent child processes. Wouldn't it possible to have a look at the QProcess implementation? Of course it is possible. I did. Much of it is unwritten (I'm talking

Re: Child processes in LyX

2005-01-30 Thread Asger Ottar Alstrup
Well, it seems you have already implemented most of this stuff. I think it looks great. Did you try to shove any of it into LyX? Regarding determining exiting on Windows: In addition to the thread, it is also common to just add a timer and poll check once in a while. That helps avoid threads, w

Re: Child processes in LyX

2005-01-29 Thread Andre Poenitz
On Fri, Jan 28, 2005 at 06:33:44PM +, Angus Leeming wrote: > I thought I'd post where I've got to with OS-independent child processes. Wouldn't it possible to have a look at the QProcess implementation? Andre'

Child processes in LyX

2005-01-28 Thread Angus Leeming
I thought I'd post where I've got to with OS-independent child processes. I decided to start from scratch, just so that I understand what's going on and to try and make a clean, understandable design. I thought I'd also try and write some docs explaining the design. See here for the current stat