Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F15A818FEA for ; Wed, 14 Oct 2015 23:43:06 +0000 (UTC) Received: (qmail 20511 invoked by uid 500); 14 Oct 2015 23:43:06 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 20480 invoked by uid 500); 14 Oct 2015 23:43:06 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 20470 invoked by uid 99); 14 Oct 2015 23:43:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2015 23:43:06 +0000 Date: Wed, 14 Oct 2015 23:43:06 +0000 (UTC) From: "Vladisav Jelisavcic (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-638) Implement IgniteSemaphore data structure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14958023#comment-14958023 ] Vladisav Jelisavcic commented on IGNITE-638: -------------------------------------------- I made a new commit addressing those issues. It seems that GridCacheAbstractDataStructuresFailoverSelfTest is currently broken ([ignite-801|https://issues.apache.org/jira/browse/IGNITE-801] and [ignite-803|https://issues.apache.org/jira/browse/IGNITE-803]). \\ I guess additional tests should be placed there but i guess there is no point doing it until these are fixed? > Implement IgniteSemaphore data structure > ---------------------------------------- > > Key: IGNITE-638 > URL: https://issues.apache.org/jira/browse/IGNITE-638 > Project: Ignite > Issue Type: Sub-task > Components: data structures > Affects Versions: sprint-9 > Reporter: Dmitriy Setrakyan > Assignee: Vladisav Jelisavcic > Labels: features, newbie > Fix For: 1.5 > > > We need to add {{IgniteSemaphore}} data structure in addition to other data structures provided by Ignite. {{IgniteSemaphore}} should have similar API to {{java.util.concurrent.IgniteSemaphore}} 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 number of permits and allow user threads to block whenever no more permits are available. -- This message was sent by Atlassian JIRA (v6.3.4#6332)