comp.lang.ada
 help / color / mirror / Atom feed
* Tasking question (not the same as ^^^)
@ 1997-10-10  0:00 Paul Van Gorp
  1997-10-10  0:00 ` Matthew Heaney
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paul Van Gorp @ 1997-10-10  0:00 UTC (permalink / raw)



I am having this strange problem with tasking, here is the scenario...

task DO_STUFF is
	entry do_stuff1(...);
	entry do_stuff2(...);
end DO_STUFF;

task user is	-- interacts with DO_STUFF
	entry input_entered(c: Character);	-- the body for this interacts with DO_STUFF
end user;

-- and the mail program has this loop...

begin 

...
	loop
		ch := Getch;	-- doesn't have to be Getch, could just be a read
		user.input_entered(ch);
	end loop
...
end ...;

Now, It may be a rotten way to do it, but it works fine when there is no
facility for a simple keyboard interface, the tasks all seem to not operate
when input is being awaited from the keyboard.

It seems to work fine when I hardcode input ( user.input_entered(...) ) in the
main part of the program.

Wondering if anyone might have a clue as to what the program might be...

Thanks in advance..

Paul







^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1997-10-30  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-10  0:00 Tasking question (not the same as ^^^) Paul Van Gorp
1997-10-10  0:00 ` Matthew Heaney
1997-10-10  0:00   ` Robert Dewar
1997-10-10  0:00 ` Stephen Leake
1997-10-11  0:00   ` Paul Van Gorp
1997-10-30  0:00 ` Balmacara9

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