comp.lang.ada
 help / color / mirror / Atom feed
From: visser@shapetc.UUCP (Henk Visser)
Subject: losing terminal data when using task concurrency.
Date: 15 Feb 89 16:18:53 GMT	[thread overview]
Message-ID: <343@shapetc.UUCP> (raw)


An ALSYS ADA (vesrion3.2) application on a sun3/50 (SUNOS v3.2) gives me a
problem. A simplified version of the task looks as follows:

begin
  OPEN(INPUT_FILE,IN_FILE,"/dev/ttyb");
  loop
     begin
        GET_LINE(INPUT_FILE,INPUT_LINE,LINE_INDEX);
        BUFFER.WRITE(INPUT_LINE);
     end;
  end loop;
end;

The terminal handler buffers the incoming data, so no data should get lost when the rendezvous (BUFFER.WRITE) is executed. But unfortunately I do lose data.
The data is not lost if I replace the BUFFER.WRITE with a delay or something
else. So it looks like that data get lost when the task is suspended during the
rendezvous.
Who can help me to get around this problem?

Please send your mail to ..mcvax!shapetc!visser

						Thanks in advance,
							Henk Visser
							Shape Technical Centre,
							The Hague, Holland 

                 reply	other threads:[~1989-02-15 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox