Skip to the content.

Home / cs-notes / Language / Java / Concurrent / Code / Synchronization / AbstractQueuedSynchronizer / Methods / get

    public final Collection<Thread> getWaitingThreads(ConditionObject condition) {
        if (!owns(condition))
            throw new IllegalArgumentException("Not owner");
        return condition.getWaitingThreads();
    }