| |
|
| java.lang.Object com.sun.portal.search.util.Semaphore
Semaphore | public class Semaphore (Code) | | N-way counting semaphore.
|
Constructor Summary | |
public | Semaphore(int n) Create a semaphore of size n. |
Method Summary | |
public synchronized void | acquire() Acquire the semaphore. | public synchronized void | release() Release the semaphore. |
Semaphore | public Semaphore(int n)(Code) | | Create a semaphore of size n.
Allow up to n outstanding acquisitions.
|
release | public synchronized void release()(Code) | | Release the semaphore.
|
|
|
|