in reply to threads, file handles and wxPerl
You could make a set of pipes to the thread, and this has the advantage that you can create the pipe in the main thread, and pass the pipe filehandle into the thread at creation time. The advantage to this is that as soon as you create the writer end of the pipe in the thread, you can immediately start writing the output of your thread's IPC3 output into the thread, without dealing with semaphores. See Using Select and pipes to communicate with threads for a simple example. You can probably use Wx's ProcessStream to watch the pipe's input, as I imagine it is like Tk's fileevent.
Just a late thought I wanted to pass on to you. :-)
|
|---|