From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32621 invoked by alias); 21 Apr 2006 21:16:26 -0000 Received: (qmail 32611 invoked by uid 22791); 21 Apr 2006 21:16:25 -0000 X-Spam-Check-By: sourceware.org Received: from conn.mc.mpls.visi.com (HELO conn.mc.mpls.visi.com) (208.42.156.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Apr 2006 21:16:23 +0000 Received: from rivatek.dnsalias.net (rrcs-67-52-41-51.west.biz.rr.com [67.52.41.51]) by conn.mc.mpls.visi.com (Postfix) with ESMTP id 754BA8195 for ; Fri, 21 Apr 2006 16:16:21 -0500 (CDT) Received: by rivatek.dnsalias.net (Postfix, from userid 1000) id 9680857099; Fri, 21 Apr 2006 16:16:20 -0500 (CDT) To: ecos-discuss@ecos.sourceware.org From: Grant Edwards In-Reply-To: <44493EBD.7050708@speag.ch> References: <44493EBD.7050708@speag.ch> Date: Fri, 21 Apr 2006 21:16:00 -0000 Message-Id: <20060421211620.9680857099@rivatek.dnsalias.net> Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Is it possible to read and write from two different threads via the same fopen("/dev/ser0"...) handle ??? X-SW-Source: 2006-04/txt/msg00219.txt.bz2 In gmane.os.ecos.general, you wrote: > I want to read and write the same serial port from a reading > thread and from am other writeing thread. Should do this work? Yes, that should work. > I can do this via the cyg_io_read(...) and cyg_io_write(...) > functions, Same here. I've always used the cyg_io_xxxx() functions to access serial ports, and never had any problems with "simultaneous" read/write operations from different threads. > but the file-version dosn't worked... I would expect that to work as well, but I've never tried it. > But may be i did it wrong... Maybe. -- Grant Edwards grante Yow! I was in a HOT at TUB! I was NORMAL! I was visi.com ITALIAN!! I enjoyed th' EARTHQUAKE! -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss