Java ReentrantLock isRepair()

Here you can find the source of isRepair()

Description

is Repair

License

Open Source License

Declaration

private static boolean isRepair() 

Method Source Code

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

import java.util.concurrent.locks.ReentrantLock;

public class Main {
    private static final ReentrantLock updateLock = new ReentrantLock();

    private static boolean isRepair() {
        return updateLock.isHeldByCurrentThread();
    }//w w  w  .  j ava2 s  .co  m
}

Related

  1. getActivityLock()
  2. getAudioLock()
  3. getLock(String id)
  4. getLockInfo(ReentrantLock lock)
  5. lock()
  6. readSyncLock(String id)
  7. removeJavaStdLoggerHandlers()
  8. runConcurrent(long startGapTime, Runnable... tasks)