- All Implemented Interfaces:
Semaphore
Implements a simple semaphore that does not do any
semaphore-ing. That is, the methods just immediately return.
- Author:
- Dave Bristor
-
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
-
NullSemaphore
public NullSemaphore(String owner)
-
Method Details
-
acquire
public void acquire()
Does nothing.
- Specified by:
acquire in interface Semaphore
-
release
public void release()
Does nothing.
- Specified by:
release in interface Semaphore