This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Serial port & Threads on a AEB-1
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] Serial port & Threads on a AEB-1
- From: jens dot ohlund at secrc dot abb dot se
- Date: Mon, 26 Jun 2000 13:30:15 +0200
Hi !
I have this problem that the program ends when i call the cyg_thread_delay.
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.
yours
Jens