- All Implemented Interfaces:
Semaphore
Implements a simple semaphore.
- Author:
- Dave Bristor, Marina Vatkina
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SemaphoreImpl
public SemaphoreImpl(String owner)
-
Method Details
-
acquire
public void acquire()
Acquire a lock.
- Specified by:
acquire in interface Semaphore
-
release
public void release()
Release a lock.
- Specified by:
release in interface Semaphore