* [ECOS] Serial port & Threads on a AEB-1
@ 2000-06-26 4:30 jens.ohlund
2000-06-26 6:47 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: jens.ohlund @ 2000-06-26 4:30 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] Serial port & Threads on a AEB-1
2000-06-26 4:30 [ECOS] Serial port & Threads on a AEB-1 jens.ohlund
@ 2000-06-26 6:47 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-06-26 6:47 UTC (permalink / raw)
To: jens.ohlund; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-26 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-26 4:30 [ECOS] Serial port & Threads on a AEB-1 jens.ohlund
2000-06-26 6:47 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).