Java ReentrantLock getActivityLock()

Here you can find the source of getActivityLock()

Description

get Activity Lock

License

Open Source License

Declaration

public static Lock getActivityLock() 

Method Source Code

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

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

public class Main {
    private static Lock activityLock = new ReentrantLock();

    public static Lock getActivityLock() {
        return activityLock;
    }//from  w w w  .j av a  2s  .  co  m
}

Related

  1. getAudioLock()
  2. getLock(String id)
  3. getLockInfo(ReentrantLock lock)
  4. isRepair()