From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d5bff08777921a2 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: returning a value from tasking?? Date: 1996/12/01 Message-ID: #1/1 X-Deja-AN: 201713530 references: <32A080A9.7BCA@access.hky.com> organization: New York University newsgroups: comp.lang.ada Date: 1996-12-01T00:00:00+00:00 List-Id: Randy asks how to read a character within three seconds, or quit the attempt. Obviously we should not do his assignment for him, but the general advice in this situation is to make sure you understand the tools you are using. In this case, if you are using tasking, it is not good enough to piece together a vague approximation based on things people have showed you. You need to first assemble a reasonably complete knowledge of how tasking works from an appropriate text book. In this case obviously the solution is a timed entry call followed by a conditional abort, but you need to know what these are to use them. if you were using Ada 95 rather than the obsolescent Ada 83, you could use asyncrhonous transfer of control to achieve the conditional abort.