You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Dmitry Pavlov (Jira)" <ji...@apache.org> on 2021/03/30 08:55:00 UTC
[jira] [Commented] (IGNITE-2399) Add asynchronous acquire to
IgniteSemaphore
[ https://issues.apache.org/jira/browse/IGNITE-2399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17311290#comment-17311290 ]
Dmitry Pavlov commented on IGNITE-2399:
---------------------------------------
[~atri] [~vkulichenko], it seems that the test
https://ci.ignite.apache.org/test/-3059424454524523197?currentProjectId=IgniteTests24Java8&orderBy=buildStartDate&order=desc&branch=%3Cdefault%3E
is started to fail after this PR merge. Could you please check if it is related?
> Add asynchronous acquire to IgniteSemaphore
> -------------------------------------------
>
> Key: IGNITE-2399
> URL: https://issues.apache.org/jira/browse/IGNITE-2399
> Project: Ignite
> Issue Type: Improvement
> Components: data structures
> Reporter: Vladisav Jelisavcic
> Assignee: Atri Sharma
> Priority: Major
> Time Spent: 3h
> Remaining Estimate: 0h
>
> Usually a permit acquisition is followed by an action, followed by a release of the permit. A simple enhancement to the existing Semaphore API can be made that enables asynchronous acquire:
> <T> IgniteFuture<T> acquireAndExecute(Callable<T> action, int numPermits);
> The method would immediately return a future to be later completed by the action's result. Permits are to be released after the future is completed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)