From: Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
To: Mark Nowhere <markwod@yahoo.co.uk>
Cc: pthreads-win32@sources.redhat.com
Subject: Re: Methods for "signalling" other threads?
Date: Tue, 25 Oct 2005 17:20:00 -0000 [thread overview]
Message-ID: <435E86D6.2090603@gmx.de> (raw)
In-Reply-To: <20051025155621.14418.qmail@web53101.mail.yahoo.com>
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
next prev parent reply other threads:[~2005-10-25 17:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-25 15:56 Mark Nowhere
2005-10-25 17:20 ` Ronny Pfannschmidt [this message]
2005-10-25 23:58 ` Arash Partow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=435E86D6.2090603@gmx.de \
--to=ronny.pfannschmidt@gmx.de \
--cc=markwod@yahoo.co.uk \
--cc=pthreads-win32@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).