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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,41c5dc8789baf2f3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.105.2 with SMTP id gi2mr70416wib.4.1348190011776; Thu, 20 Sep 2012 18:13:31 -0700 (PDT) Path: q11ni3492521wiw.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.131.MISMATCH!xlned.com!feeder3.xlned.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Understanding Visibility Date: Mon, 17 Sep 2012 23:19:14 +0200 Organization: cbb software GmbH Message-ID: <82c5e4984vf2$.1snxa3p5dlpxf$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-09-17T23:19:14+02:00 List-Id: On Mon, 17 Sep 2012 13:42:27 -0700 (PDT), tonyg wrote: > I needed to log some stuff from several tasks in one program. So I wrote a > little logging package. I used a package containing several > text_io.file_types followed by a protected object to make sure the file > operations were not interfered with. It is an error to do I/O from a protected action, since I/O is a potentially blocking operation. You should either use a task (AKA monitor) or else a protected object implementing a mutex (using a controlled holder object, of course). > However when things were passed through to inside the protected object I > found that the file was not taking the information being passed to it. Can > anyone explain this to me, as I think the file should be visible. You should always post a working code illustrating the problem. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de