Java Thread Lock lock(Lock lock)

Here you can find the source of lock(Lock lock)

Description

lock

License

BSD License

Declaration

private static void lock(Lock lock) 

Method Source Code

//package com.java2s;
/*/*ww  w . j  a v  a 2s  .  com*/
 * Copyright 2015, Yahoo Inc.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */

import java.util.concurrent.locks.Lock;

public class Main {
    private static void lock(Lock lock) {
        if (lock != null) {
            lock.lock();
        }
    }
}

Related

  1. getLocaleProperties(Locale locale)
  2. getPropLock(String s)
  3. loadClass(String className)
  4. loadClassWithRegisteredClassLoaders(String className)
  5. lock(Lock lock)
  6. lockAll(List locks)
  7. lockedSleep(Lock l, long time)
  8. newLinkedBlockingDeque(Collection collection)
  9. release()