Methods for "signalling" other threads?

Mark Nowhere markwod@yahoo.co.uk
Tue Oct 25 15:56:00 GMT 2005


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



More information about the Pthreads-win32 mailing list