-
-
Method Summary
Methods
| Modifier and Type |
Method and Description |
void |
acquire()
Acquire a lock.
|
void |
release()
Release a lock.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
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
Copyright © 2017. All rights reserved.