This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: Serial port & Threads on a AEB-1
- To: jens dot ohlund at secrc dot abb dot se
- Subject: Re: [ECOS] Serial port & Threads on a AEB-1
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Mon, 26 Jun 2000 14:47:17 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <OFFD92F6CC.92CA49DE-ONC125690A.003EA12C@secrc.abb.se>
jens.ohlund@secrc.abb.se wrote:
>
> I have three threads.
> One just counting and sending approx 2 byte /second.
> One just reading the serial port.
> One just sending everything from a buffer on the serial port.
>
> When the first calls delay - ok, then the second gets stuck in cyg_io_read() waiting for data.
> But the third one creates havoc or something. When it calls the cyg_thread_delay the program all of a sudden quits.
Quits as in hangs? Have you tried enabling assertions?
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault