/** * Acquires a permit from this semaphore, blocking until one is available, or the thread is * {@link Thread#interrupt interrupted}. * * @throws InterruptedException if the current thread is interrupted * @see Thread#interrupt */ public void acquire() throws InterruptedException { acquire(1); }
/** * Acquires a permit from this semaphore, blocking until one is available, or the thread is * {@link Thread#interrupt interrupted}. * * @throws InterruptedException if the current thread is interrupted * @see Thread#interrupt */ public void acquire() throws InterruptedException { acquire(1); }