Examples of tryEnter()


Examples of com.google.common.util.concurrent.Monitor.tryEnter()

    public boolean tryLock(Object name) {
        Monitor lock;
        synchronized (stringLocks) {
            lock = stringLocks.getUnchecked(name);
        }
        return lock.tryEnter();
    }

    /**
     * A simple Guava cache loader implementation for generating object-based locks
     */
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.