Methods for "signalling" other threads?
Ronny Pfannschmidt
Ronny.Pfannschmidt@gmx.de
Tue Oct 25 17:20:00 GMT 2005
Mark Nowhere wrote:
>Hi,
> Just a quick question. I have a serial
>reader/writer thread and an network reader/writer
>thread. Basically I want the serial thread to, once
>new data has come in from the COMM port signal the
>network thread in some way to get it to pick up the
>data and send it over the network. Just not sure what
>I should use to get this effect?
>
>Options I can see are:
>
>Semaphores
>or
>pthread_cond_signal/pthread_cond_wait stuff
>or
>something else :)
>
>Many thanks for any advice
>
>Mark
>
>
>
>___________________________________________________________
>To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
>
>
>
why dont let the 1st thread [read serial] -> [write net],
and the 2nd [read net] -> [write serial]
Ronny
More information about the Pthreads-win32
mailing list