Here you can find the source of getActivityLock()
public static Lock getActivityLock()
//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 }