From 9a228a6017e025696a97b9670e391fe027da0f9d Mon Sep 17 00:00:00 2001 From: leventov Date: Mon, 18 May 2015 13:51:59 +0100 Subject: [PATCH] Added InterProcessLock.newCondition default implementation --- .../net/openhft/chronicle/hash/locks/InterProcessLock.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/openhft/chronicle/hash/locks/InterProcessLock.java b/src/main/java/net/openhft/chronicle/hash/locks/InterProcessLock.java index e4f4284af..459d8fce8 100644 --- a/src/main/java/net/openhft/chronicle/hash/locks/InterProcessLock.java +++ b/src/main/java/net/openhft/chronicle/hash/locks/InterProcessLock.java @@ -46,5 +46,8 @@ public interface InterProcessLock extends Lock { */ @NotNull @Override - Condition newCondition(); + default Condition newCondition() { + throw new UnsupportedOperationException( + "Conditions are not supported by inter-process locks"); + } }