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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8eff44ec1bcf8433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-22 01:40:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn From: mike@nospam Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: 22 Oct 2001 01:04:54 -0700 Organization: Newsguy News Service [http://newsguy.com] Message-ID: <9r0jv601nff@drn.newsguy.com> References: <9qctpn$lil$1@news.huji.ac.il> <3BCC01B1.18C18C98@free.fr> <3BCC6CB7.20BAA30D@boeing.com> <9r0fbp$l5t$1@shell.monmouth.com> NNTP-Posting-Host: p-989.newsdawg.com X-Newsreader: Direct Read News 2.90 Xref: archiver1.google.com comp.lang.ada:15014 Date: 2001-10-22T01:04:54-07:00 List-Id: In article <9r0fbp$l5t$1@shell.monmouth.com>, ka@sorry.no.email says... > > The natural way to accomplish this in Ada is to >wrap the queue in a protected type with appropriate entry barriers, as >is shown in the code at the end of this posting. I assume given a type that is not wrapped by a protected type (i.e. a type in a 3rd party package), one could wrap a protected type around it to make it thread safe? i.e. if I have nice Queue package and I want to use with tasks, but I do not have the code for that package, can one still use protected types with it?