diff options
| author | Robert Greig <rgreig@apache.org> | 2007-01-16 19:38:51 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-01-16 19:38:51 +0000 |
| commit | b4bfefbc739f4738ab63dc8e4596ba7ddd41aa43 (patch) | |
| tree | a6016128ffbc8221648fd2c5ffbcc5dedd22585f /qpid/java/common | |
| parent | 1442b77dee6de581babed7d4b4040b6fd609d777 (diff) | |
| download | qpid-python-b4bfefbc739f4738ab63dc8e4596ba7ddd41aa43.tar.gz | |
Fix to broken build due to missing file.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@496833 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common')
| -rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/util/concurrent/BooleanLatch.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/util/concurrent/BooleanLatch.java b/qpid/java/common/src/main/java/org/apache/qpid/util/concurrent/BooleanLatch.java new file mode 100644 index 0000000000..70a5f2dc5e --- /dev/null +++ b/qpid/java/common/src/main/java/org/apache/qpid/util/concurrent/BooleanLatch.java @@ -0,0 +1,42 @@ +/* + * + * Copyright (c) 2006 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +package org.apache.qpid.util.concurrent; + +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; + +/** + * @author Apache Software Foundation + */ +public class BooleanLatch extends CountDownLatch +{ + public BooleanLatch() + { + super(1); + } + + public void signal() + { + countDown(); + } + + public void await(long nanos) throws InterruptedException + { + await(nanos, TimeUnit.NANOSECONDS); + } +} |
