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 Path: border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Safety of unprotected concurrent operations on constant objects Date: Mon, 5 May 2014 09:38:22 +0200 Organization: cbb software GmbH Message-ID: <1jbqe7sd9d13f.1p91l6pdkv6fz.dlg@40tude.net> References: <7403d130-8b42-43cd-a0f1-53ba34b46141@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: G+aXx1XI67D34t54ibhUPQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1688 Xref: number.nntp.dca.giganews.com comp.lang.ada:186233 Date: 2014-05-05T09:38:22+02:00 List-Id: On Sun, 04 May 2014 14:25:26 -0600, Shark8 wrote: > On 04-May-14 01:46, Natasha Kerensikova wrote: >> I have some shared resources indexed by a string, described in a >> file, and considered as constant throughout the lifetime of the program >> (with the standard scheme "restart for changes to take effect"). > > What's the problem, then, with making the entire map constant? That is not enough. Technically speaking all operations must be reentrant. All arguments being immutable does not make a subprogram reentrant. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de