You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Dmitriy Setrakyan (JIRA)" <ji...@apache.org> on 2015/03/30 06:50:54 UTC

[jira] [Created] (IGNITE-642) Implement IgniteReentrantLock data structure

Dmitriy Setrakyan created IGNITE-642:
----------------------------------------

             Summary: Implement IgniteReentrantLock data structure
                 Key: IGNITE-642
                 URL: https://issues.apache.org/jira/browse/IGNITE-642
             Project: Ignite
          Issue Type: Sub-task
          Components: data structures
            Reporter: Dmitriy Setrakyan


We need to add {{IgniteReentrantLock}} data structure in addition to other data structures provided by Ignite. {{IgniteReentrantLock}} should have similar API to {{java.util.concurrent.locks.ReentrantLock}} class in JDK.

As an example, you can see how [IgniteCountDownLatch|https://github.com/apache/incubator-ignite/blob/master/modules/core/src/main/java/org/apache/ignite/IgniteCountDownLatch.java] is implemented in [GridCacheCountDownLatchImpl|https://github.com/apache/incubator-ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheCountDownLatchImpl.java] class.

In general we need to have an entity in ATOMIC cache storing lock-owner identifier together with a queue of waiters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)