All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.odell.glazedlists.util.concurrent.ReadWriteLock Maven / Gradle / Ivy

The newest version!
/* Glazed Lists                                                 (c) 2003-2006 */
/* http://publicobject.com/glazedlists/                      publicobject.com,*/
/*                                                     O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.util.concurrent;

/**
 * A ReadWriteLock maintains a pair of associated locks, one for read-only operations
 * and one for writing. The read lock may be held simultaneously by multiple reader
 * threads, so long as there are no writers. The write lock is exclusive.
 *
 * 

This interface is a back-port of the {@link java.util.concurrent.locks.ReadWriteLock} * class that first appeared in J2SE 1.5. Due to a requirement for sophisticated * concurrency, this interface has been back-ported for use in J2SE 1.4 (and greater). * It shares similar method signatures to be consistent with the J2SE 1.5 API. * * @see java.util.concurrent.locks.ReadWriteLock * @see ReadWriteLock * * @author Jesse Wilson */ public interface ReadWriteLock { /** * Return the lock used for reading. */ public Lock readLock(); /** * Return the lock used for writing. */ public Lock writeLock(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy