Java Thread Lock releaseReadLock(final ReadWriteLock lock)

Here you can find the source of releaseReadLock(final ReadWriteLock lock)

Description

release Read Lock

License

Open Source License

Declaration

public static void releaseReadLock(final ReadWriteLock lock) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;

public class Main {
    public static void releaseReadLock(final ReadWriteLock lock) {
        releaseLock(lock.readLock());//from   ww w .  j ava2 s  .  com
    }

    public static void releaseLock(final Lock lock) {
        lock.unlock();
    }
}

Related

  1. lockAll(List locks)
  2. lockedSleep(Lock l, long time)
  3. newLinkedBlockingDeque(Collection collection)
  4. release()
  5. releaseLock(final Lock lock)
  6. runSync(final Lock lock, final Runnable task)
  7. sleepNanos(long nanos)
  8. sleepRandomNanos(Random random, long maxDelayNanos)