Code example for Condition

Methods: signal

0
     */ 
    private void signalNotEmpty() { 
        final ReentrantLock takeLock = this.takeLock;
        takeLock.lock();
        try { 
            notEmpty.signal();
        } finally { 
            takeLock.unlock();
        } 
    } 
 
    /** 
     * Signals a waiting put. Called only from take/poll. 
     */ 
    private void signalNotFull() { 
        final ReentrantLock putLock = this.putLock;
        putLock.lock();
        try { 
            notFull.signal();
        } finally { 
Contextual code suggestions in your IDE  Get Codota for Java