Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0BA3105B5 for ; Sun, 15 Dec 2013 23:47:26 +0000 (UTC) Received: (qmail 2489 invoked by uid 500); 15 Dec 2013 23:47:26 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 2445 invoked by uid 500); 15 Dec 2013 23:47:26 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 2437 invoked by uid 99); 15 Dec 2013 23:47:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 23:47:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bs4mailinglist@gmail.com designates 209.85.215.181 as permitted sender) Received: from [209.85.215.181] (HELO mail-ea0-f181.google.com) (209.85.215.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 23:47:20 +0000 Received: by mail-ea0-f181.google.com with SMTP id m10so1882448eaj.26 for ; Sun, 15 Dec 2013 15:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6R0qcV3eH2xQH33yk19kBoePNyZLitIJACvS4k5Q8p8=; b=Lq/O5Zytw1vk2fcErs5SVOzi/xYEptk/PMcfQltyz+Pn38ffDho1EuHpcZyqg8EfSa 5OgDVVuPBYatkBCSaxqx70Ptfz0EcklQ+BLAVGFoupk4ZA2IHvK2JTXnb/pYhiraIvqb s9VrxwGBbK3cKn7FZU42PkQfvFGYVNobYOkfZpjWHVSp64nIHWKeqwwPULTrzz1543KY nMdz4Bn7Ek3n4lVY63/TksOnPBwbsfvcXV6SEyUOp6JZHLJaOWwjusUZ4YWrc4C9vc/m LydWuPB+Z2FIoshoiFTUGy7QoHxsDKg3m55AIE96NJCXLiqpm9XGCy5GgjVgmcs0ATgV t3lw== MIME-Version: 1.0 X-Received: by 10.14.4.67 with SMTP id 43mr13645500eei.70.1387151220460; Sun, 15 Dec 2013 15:47:00 -0800 (PST) Received: by 10.14.9.69 with HTTP; Sun, 15 Dec 2013 15:47:00 -0800 (PST) In-Reply-To: References: Date: Mon, 16 Dec 2013 01:47:00 +0200 Message-ID: Subject: Re: Usage of SharedCount From: Sznajder ForMailingList To: user@curator.apache.org Content-Type: multipart/alternative; boundary=047d7b66f83bbed0c004ed9b4fa7 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b66f83bbed0c004ed9b4fa7 Content-Type: text/plain; charset=ISO-8859-1 Just to be sure: my scenario is that several processes increment and decrement this node value. Each process calls "close()" only at the end of its processing or for each incrementation / decrementation ? Benjamin On Mon, Dec 16, 2013 at 1:45 AM, Sznajder ForMailingList < bs4mailinglist@gmail.com> wrote: > Thanks, Jordan for your answer!! > > Will the other processes see the updated value under this node, if I did > not call close() yet? > > Benjamin > > > On Mon, Dec 16, 2013 at 12:36 AM, Jordan Zimmerman < > jordan@jordanzimmerman.com> wrote: > >> Call close() when you are done with the object. i.e. allocate once, close >> once. Think of a file handle, etc. >> >> On Dec 15, 2013, at 4:19 PM, Sznajder ForMailingList < >> bs4mailinglist@gmail.com> wrote: >> >> > Hi >> > >> > When I am using SharedCount for counting, should I call >> SharedCount.close() every time, I changed the value of the SharedCount? >> > Or, this close() must be called only, at the end of the process? >> > >> > Many thanks! >> > >> > Benjamin >> >> > --047d7b66f83bbed0c004ed9b4fa7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Just to be sure:

my scenario is that several p= rocesses increment and decrement this node value.
Each process cal= ls "close()" only at the end of its processing or for each increm= entation / decrementation ?

Benjamin


On Mon, Dec 16, 2013 at 1:45 AM, Sznajder ForMailingList <= bs4mailinglist@gmail.com> wrote:
Thanks, Jordan fo= r your answer!!

Will the other processes see the updated value= under this node, if I did not call close() yet?

Benjamin


On Mon, Dec 16, 2013 at 12:36 AM, Jordan= Zimmerman <jordan@jordanzimmerman.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex"> Call close() when you are done with the object. i.e. allocate once, close o= nce. Think of a file handle, etc.

On Dec 15, 2013, at 4:19 PM, Sznajder ForMailingList <bs4mailinglist@gmail.com>= ; wrote:

> Hi
>
> When I am using SharedCount for counting, should I call SharedCount.cl= ose() every time, I changed the value of the SharedCount?
> Or, this close() must be called only, at the end of the process?
>
> Many thanks!
>
> Benjamin



--047d7b66f83bbed0c004ed9b4fa7--