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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,23ffa52608fbb144 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.154.133 with SMTP id o5mr1866567bkw.0.1337448907602; Sat, 19 May 2012 10:35:07 -0700 (PDT) Path: e27ni18120bkw.0!nntp.google.com!news1.google.com!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problem with Delay Alternative in Finalization Date: Sat, 19 May 2012 18:33:53 +0100 Organization: A noiseless patient Spider Message-ID: References: <6v0er7d545kvs3pr7aqe1dnrlq4mg5ldhg@4ax.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="/2vSN2OC8n1tCnnuO0LpEA"; logging-data="18694"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Pa2IQkOQ/isqnMwUGkzNVdosR9ITsv3w=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Cancel-Lock: sha1:lGcRIjuU99PKOffd121pq6dEarE= sha1:oSEpwFSch95fAO8P3E9LtTTYhhs= Content-Type: text/plain; charset=us-ascii Date: 2012-05-19T18:33:53+01:00 List-Id: Tim McGuire writes: > I am running in to a problem where a delay alternive used when in > finalization doesn't seem to be working properly. > The delay part never seems to happen. I ran this (after correcting a couple of minor compilation problems) on a Mac. Using both GNAT GPL 2011 and GCC 4.7.0, the appearance on-screen is as though the timeout didn't occur: $ ./token_test Got Token Token timed out! With both compilers, the debugger shows that the Lock_Timeout_Exception did in fact happen. What happens next is confused .. Dmitry is probably right.