Searched defs:shared (Results 1 - 6 of 6) sorted by relevance
/libcore/luni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 27 * can be <em>exclusive</em> or <em>shared</em>. Multiple processes can hold 28 * shared locks on the same region of a file, but only a single process can hold 30 * simultaneously hold a shared lock overlapping the exclusive lock. An 31 * application can determine whether a {@code FileLock} is shared or exclusive 37 * locks held in this process. Locks are shared amongst all threads in the 58 * the platform is adopting advisory locks and always acquire shared locks when 82 // If true then shared, if false then exclusive 83 private final boolean shared; field in class:FileLock 95 * @param shared 96 * the lock's sharing mode of lock; {@code true} is shared, 99 FileLock(FileChannel channel, long position, long size, boolean shared) argument [all...] |
H A D | FileChannel.java | 216 * Some platforms do not support shared locks, and if a request is made for 217 * a shared lock on such a platform, this method will attempt to acquire an 225 * @param shared 227 * a shared lock. 237 * if the channel is not opened in read-mode but shared is true. 239 * if the channel is not opened in write mode but shared is 250 public abstract FileLock lock(long position, long size, boolean shared) argument 601 * @param shared 602 * true if the lock is shared. 616 public abstract FileLock tryLock(long position, long size, boolean shared) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | FileLockTest.java | 43 boolean shared) { 44 super(channel, position, size, shared); 42 MockFileLock(FileChannel channel, long position, long size, boolean shared) argument
|
H A D | FileChannelTest.java | 786 // shared lock, but it works on Windows & Linux. 994 // shared lock, but it works on Windows & Linux. 3030 public FileLock lock(long position, long size, boolean shared) argument 3034 if (0 == position && Long.MAX_VALUE == size && false == shared) { 3089 public FileLock tryLock(long position, long size, boolean shared) argument 3093 if (0 == position && Long.MAX_VALUE == size && false == shared) {
|
/libcore/libart/src/main/java/java/lang/ |
H A D | AbstractStringBuilder.java | 42 private boolean shared; field in class:AbstractStringBuilder 52 * Returns the underlying buffer and sets the shared flag. 55 shared = true; 70 shared = false; 88 shared = false; 98 shared = false; 164 } else if (shared) { 166 shared = false; 236 if (!shared) { 243 shared [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | FileChannelImpl.java | 94 private FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOException { argument 97 if (!shared) { 101 if (shared) { 110 FileLock pendingLock = new FileLockImpl(this, position, size, shared); 114 flock.l_type = (short) (shared ? F_RDLCK : F_WRLCK); 140 public FileLockImpl(FileChannel channel, long position, long size, boolean shared) { argument 141 super(channel, position, size, shared); 159 public final FileLock lock(long position, long size, boolean shared) throws IOException { argument 166 resultLock = basicLock(position, size, shared, true); 179 public final FileLock tryLock(long position, long size, boolean shared) throw argument [all...] |
Completed in 103 milliseconds