From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7321 invoked by alias); 25 Oct 2005 17:20:08 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 7273 invoked by uid 22791); 25 Oct 2005 17:20:02 -0000 Received: from mail.gmx.de (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Tue, 25 Oct 2005 17:20:02 +0000 Received: (qmail invoked by alias); 25 Oct 2005 17:19:59 -0000 Received: from p54B8B142.dip0.t-ipconnect.de (EHLO [192.168.1.20]) [84.184.177.66] by mail.gmx.net (mp028) with SMTP; 25 Oct 2005 19:19:59 +0200 X-Authenticated: #6511733 Message-ID: <435E86D6.2090603@gmx.de> Date: Tue, 25 Oct 2005 17:20:00 -0000 From: Ronny Pfannschmidt User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051008) MIME-Version: 1.0 To: Mark Nowhere CC: pthreads-win32@sources.redhat.com Subject: Re: Methods for "signalling" other threads? References: <20051025155621.14418.qmail@web53101.mail.yahoo.com> In-Reply-To: <20051025155621.14418.qmail@web53101.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-SW-Source: 2005/txt/msg00127.txt.bz2 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