Java Thread Lock getGradingReadLock()

Here you can find the source of getGradingReadLock()

Description

get Grading Read Lock

License

Open Source License

Declaration

public static Lock getGradingReadLock() 

Method Source Code

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

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

import java.util.concurrent.locks.ReentrantReadWriteLock;

public class Main {
    private static final ReadWriteLock READ_WRITE_LOCK = new ReentrantReadWriteLock();

    public static Lock getGradingReadLock() {
        return READ_WRITE_LOCK.readLock();
    }/* w w  w  .  j  av a 2  s .com*/
}

Related

  1. canCreateNewThread()
  2. createConcurrentStack()
  3. downgradeWriteLock(final ReadWriteLock lock)
  4. fillReadWriteLocks(List readLocks, List writeLocks, int curSize, int size)
  5. getAllMessages()
  6. getInstance()
  7. getLocaleProperties(Locale locale)
  8. getPropLock(String s)
  9. loadClass(String className)