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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e44790cdcea9da82 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Problem with -gnatt Date: Tue, 19 Oct 2004 21:34:38 -0400 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: melchior.cuivre.fr.eu.org 1098236287 41406 212.85.156.195 (20 Oct 2004 01:38:07 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 20 Oct 2004 01:38:07 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: X-Authentication-Warning: fajita.toad.net: apache set sender to stephen_leake@acm.org using -f User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:5483 Date: 2004-10-19T21:34:38-04:00 "Matthew Heaney" writes: > "Alex R. Mosteo" wrote in message > news:417377F7.7050506@mailinator.com... > > > > Sole instance of a Map: > > > http://deepsix.homeip.net/svn/Adagio%20head/src/download/adagio-download-manager.adb > > Note that protected operations should only execute "for a short time." I wish Robert Dewar were here. I suspect he would say something like "Rubbish!". "a short time" is not definable in any meaningful _standard_ way. It is _totally_ up to the user to decide what that means. If your application can afford to wait an hour for a protected object, then an hour is "a short time". > Your Http_Report_Downloads protected operation could take longer > than a "short time," if the map is large. Consider using a semaphore > style lock, something like: > > procedure Http_Report_Downloads (...) is > Control : Control_Type (Semaphore'Access); > begin > ... -- safely manipulate map that you now have locked > end; > Since the user can forget to declare the Control object, this is _not_ as safe as wrapping the operations in a protected type. -- Stephe ___________________________________________________________ This mail sent using ToadMail -- Web based e-mail @ ToadNet