Re: IgniteSemaphore methods semantics

2017-08-10 Thread Valentin Kulichenko
If this is true, I think it should be fixed. availablePermits() returning number of acquired permits sounds very confusing. -Val On Thu, Aug 10, 2017 at 7:38 AM, Andrey Kuznetsov wrote: > Hi, igniters! > > > > As IgniteSemaphore's javadoc states, > > > > "Distributed

IgniteSemaphore methods semantics

2017-08-10 Thread Andrey Kuznetsov
Hi, igniters! As IgniteSemaphore's javadoc states, "Distributed semaphore provides functionality similar to {@code java.util.concurrent.Semaphore}." At the same time method semantics of current implementation is inverted, i.e. acquire() decrements internal semaphore count and