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,5d05ccde5cefb836 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: Tasks and C/C++ code. Date: 1998/11/20 Message-ID: <87k90qunxl.fsf@zaphod.enst.fr>#1/1 X-Deja-AN: 413976634 References: <364702E5.F6987321@hiwaay.net> <729ndu$jfo$1@nnrp1.dejanews.com> <72b35b$pll$1@nnrp1.dejanews.com> <87btm52jwl.fsf@zaphod.enst.fr> <3654746F.3C297E56@elca-matrix.ch> Mail-Copies-To: sam@ada.eu.org X-Complaints-To: usenet@enst.enst.fr X-Trace: enst.enst.fr 911592533 12555 137.194.160.95 (20 Nov 1998 20:08:53 GMT) Organization: TELECOM Paris Mime-Version: 1.0 User-Agent: Gnus/5.07005 (Pterodactyl Gnus v0.50) XEmacs/21.2(beta3) (Aglaia) NNTP-Posting-Date: 20 Nov 1998 20:08:53 GMT Newsgroups: comp.lang.ada Date: 1998-11-20T20:08:53+00:00 List-Id: >>>>> "Mats" == Mats Weber writes: Mats> Why not ? If the C function is potentially blocking _and_ Mats> non-reentrant (as is gethostbyname for example, which can take Mats> some time), then it's the only option. 9.5.1 (8) During a protected action, it is a bounded error to invoke an operation that is potentially blocking. I think that the spirit of protected operations is to be really short. Sam -- Samuel Tardieu -- sam@ada.eu.org