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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: Mats Weber Subject: Blocking protected ops (was: Tasks and C/C++ code) Date: 1998/11/24 Message-ID: <365AD980.5729FCD8@elca-matrix.ch>#1/1 X-Deja-AN: 415199569 Content-Transfer-Encoding: 7bit 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> <87k90qunxl.fsf@zaphod.enst.fr> <36599BE3.BA30555B@elca-matrix.ch> <3659b3a8.386623@news.pacbell.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: ELCA Matrix SA Mime-Version: 1.0 Reply-To: Mats.Weber@elca-matrix.ch Newsgroups: comp.lang.ada Date: 1998-11-24T00:00:00+00:00 List-Id: Tom Moran wrote: > > >Anyway I have seen gethostbyname protected by a protected object (I > >think it is in GLADE). So it does work. > Does the call to gethostbyname occur inside a protected procedure, > even though it blocks, or is it controlled by a semaphore or something > that is a protected object? I checked the GLADE sources and it's a semaphore, so the protected call itself will not block on gethostbyname. Anyway, the question remains: is it legal for a protected body to call some imported subprogram that could block (in the pthreads sense of the term) ? Does someone know why the rule 9.5.1(8-18) is there at all ?