curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sznajder ForMailingList <bs4mailingl...@gmail.com>
Subject Re: Usage of SharedCount
Date Sun, 15 Dec 2013 23:47:00 GMT
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
>>
>>
>

Mime
View raw message