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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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-16 08:35:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mailgate.org!out.nntp.be!propagator-SanJose!in.nntp.be!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9qctpn$lil$1@news.huji.ac.il> <3BCC01B1.18C18C98@free.fr> <9qhcd2$amt$1@news.huji.ac.il> Subject: Re: Container reqs Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Tue, 16 Oct 2001 11:34:34 EDT Organization: http://www.newsranger.com Date: Tue, 16 Oct 2001 15:34:34 GMT Xref: archiver1.google.com comp.lang.ada:14697 Date: 2001-10-16T15:34:34+00:00 List-Id: In article <9qhcd2$amt$1@news.huji.ac.il>, Ehud Lamm says... > >Jean-Marc Bourguet wrote in message >news:3BCC01B1.18C18C98@free.fr... >> I'm not for making a container "threadsafe" to the point where >> several tasks may modify the container without providing their >> synchronisation. >> In my experience >> * most containers are accessed only by one task >> * for those who are not, an explicit synchronisation is needed for >> other >> purpose as the container is not the only part member of the >> datastructure >> which has to be modified atomically. >> > >I agree, that we should not attempt to make everything protected. I find myself having to implement small queues with controlled types a lot. :-( This issue is why Booch also has tasksafe and non-tasksafe versions of everything. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.