interruptible locking doesn't work ---------------------------------- Key: CDV-893 URL: https://jira.terracotta.org/jira//browse/CDV-893 Project: Community Development Issue Type: Bug Components: DSO:L1 Reporter: Catalin Cirstoiu Assignee: Issue Review Board Attachments: InterruptibleLocking2.java, tc-config.xml
Doing thread.interrupt() on a thread trying to acquire a shared lock with lockInterruptibly() doesn't release the blocked thread as it happens in a non-clustered environment. This happens both for ReentrantLock and ReentrantReadWriteLock. The workaround consists in using a custom made interruptible lock based on two reentrant locks and a condition variable (await-ing on a condition is interrupted on thread.interrupt()). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.terracotta.org/jira//secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ tc-dev mailing list tc-dev@lists.terracotta.org http://lists.terracotta.org/mailman/listinfo/tc-dev