From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 787 invoked by alias); 25 Oct 2005 15:56:33 -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 669 invoked by uid 22791); 25 Oct 2005 15:56:22 -0000 Received: from web53101.mail.yahoo.com (HELO web53101.mail.yahoo.com) (206.190.49.51) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Tue, 25 Oct 2005 15:56:22 +0000 Received: (qmail 14420 invoked by uid 60001); 25 Oct 2005 15:56:21 -0000 Message-ID: <20051025155621.14418.qmail@web53101.mail.yahoo.com> Received: from [192.165.213.18] by web53101.mail.yahoo.com via HTTP; Tue, 25 Oct 2005 16:56:21 BST Date: Tue, 25 Oct 2005 15:56:00 -0000 From: Mark Nowhere Subject: Methods for "signalling" other threads? To: pthreads-win32@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005/txt/msg00126.txt.bz2 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