open-api: broken semaphore api fix
authorAnton Makeev <Anton.Makeev@jetbrains.com>
Tue, 27 Apr 2010 08:40:48 +0000 (12:40 +0400)
committerAnton Makeev <Anton.Makeev@jetbrains.com>
Tue, 27 Apr 2010 08:40:48 +0000 (12:40 +0400)
platform/util/src/com/intellij/util/concurrency/Semaphore.java

index f2668eb2769ba7f750062fc21c206857775c5790..76d6620d67f55ee3398e1a33740ac52940720d7e 100644 (file)
@@ -47,7 +47,11 @@ public class Semaphore {
 
   private final Sync sync = new Sync();
 
-  public boolean up() {
+  public void up() {
+    tryUp();
+  }
+
+  public boolean tryUp() {
     return sync.releaseShared(1);
   }