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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2238718bc6b1a6f1,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!postnews.google.com!e1g2000pra.googlegroups.com!not-for-mail From: hesobreira Newsgroups: comp.lang.ada Subject: Protected Objects - eggshell model Date: Tue, 23 Dec 2008 14:08:30 -0800 (PST) Organization: http://groups.google.com Message-ID: <63bd094e-8980-4b47-8e34-3d3d6f3b67d2@e1g2000pra.googlegroups.com> NNTP-Posting-Host: 80.201.181.227 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1230070110 5790 127.0.0.1 (23 Dec 2008 22:08:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 23 Dec 2008 22:08:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e1g2000pra.googlegroups.com; posting-host=80.201.181.227; posting-account=4BnsAwoAAABKT5eDzI7-HgxMd4P4yBGM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:3083 Date: 2008-12-23T14:08:30-08:00 List-Id: This was not clear to me while reading Barnes' book about protected types. There are two conditions that must be satisfied in order to execute the entry call: no other task accessing the object at the same time and the condition barrier evaluated to TRUE (eggshell, or two level protection model). My question is: which one of these conditions is evaluated first, the access lock or the condition barrier? Thank you all in advance, Hugo