org.nd4j.jita.allocator.concurrency.RRWLock Maven / Gradle / Ivy
package org.nd4j.jita.allocator.concurrency;
import org.nd4j.jita.allocator.impl.AllocationShape;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* Lock implementation based on ReentrantReadWriteLock
*
* @author [email protected]
*/
public class RRWLock implements Lock {
private ReentrantReadWriteLock globalLock = new ReentrantReadWriteLock();
private ReentrantReadWriteLock externalsLock = new ReentrantReadWriteLock();
private Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy