/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | FileLock.java | 47 * <p> A file lock is either <i>exclusive</i> or <i>shared</i>. A shared lock 49 * exclusive lock, but does allow them to acquire overlapping shared locks. An 54 * <p> Whether a lock is exclusive or shared may be determined by invoking its 55 * {@link #isShared isShared} method. Some platforms do not support shared 56 * locks, in which case a request for a shared lock is automatically converted 124 private final boolean shared; field in class:FileLock 140 * @param shared 141 * <tt>true</tt> if this lock is shared, 148 long position, long size, boolean shared) 147 FileLock(FileChannel channel, long position, long size, boolean shared) argument 185 FileLock(AsynchronousFileChannel channel, long position, long size, boolean shared) argument [all...] |
H A D | AsynchronousFileChannel.java | 82 * a system-dependent default thread pool that may be shared with other 418 * <p> Some operating systems do not support shared locks, in which case a 419 * request for a shared lock is automatically converted into a request for 420 * an exclusive lock. Whether the newly-acquired lock is shared or 436 * @param shared 437 * {@code true} to request a shared lock, in which case this 453 * If {@code shared} is true but this channel was not opened for reading 455 * If {@code shared} is false but this channel was not opened for writing 459 boolean shared, 514 * @param shared 457 lock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument 532 lock(long position, long size, boolean shared) argument 606 tryLock(long position, long size, boolean shared) argument [all...] |
H A D | FileChannel.java | 950 * <p> Some operating systems do not support shared locks, in which case a 951 * request for a shared lock is automatically converted into a request for 952 * an exclusive lock. Whether the newly-acquired lock is shared or 968 * @param shared 969 * <tt>true</tt> to request a shared lock, in which case this 997 * If <tt>shared</tt> is <tt>true</tt> this channel was not 1001 * If <tt>shared</tt> is <tt>false</tt> but this channel was not 1011 public abstract FileLock lock(long position, long size, boolean shared) argument 1077 * <p> Some operating systems do not support shared locks, in which case a 1078 * request for a shared loc 1122 tryLock(long position, long size, boolean shared) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileLockImpl.java | 36 FileLockImpl(FileChannel channel, long position, long size, boolean shared) argument 38 super(channel, position, size, shared); 41 FileLockImpl(AsynchronousFileChannel channel, long position, long size, boolean shared) argument 43 super(channel, position, size, shared);
|
H A D | FileDispatcher.java | 46 boolean shared) throws IOException; 45 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
|
H A D | AsynchronousFileChannelImpl.java | 108 boolean shared, 115 boolean shared) 118 return implLock(position, size, shared, null, null); 124 boolean shared, 130 implLock(position, size, shared, attachment, handler); 162 protected final FileLockImpl addToFileLockTable(long position, long size, boolean shared) { argument 176 fli = new FileLockImpl(this, position, size, shared); 106 implLock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument 113 lock(long position, long size, boolean shared) argument 122 lock(long position, long size, boolean shared, A attachment, CompletionHandler<FileLock,? super A> handler) argument
|
H A D | SimpleAsynchronousFileChannelImpl.java | 175 final boolean shared, 179 if (shared && !reading) 181 if (!shared && !writing) 185 final FileLockImpl fli = addToFileLockTable(position, size, shared); 206 n = nd.lock(fdObj, true, position, size, shared); 243 public FileLock tryLock(long position, long size, boolean shared) argument 246 if (shared && !reading) 248 if (!shared && !writing) 252 FileLockImpl fli = addToFileLockTable(position, size, shared); 262 n = nd.lock(fdObj, false, position, size, shared); 173 implLock(final long position, final long size, final boolean shared, final A attachment, final CompletionHandler<FileLock,? super A> handler) argument [all...] |
H A D | FileDispatcherImpl.java | 95 boolean shared) throws IOException 98 return lock0(fd, blocking, pos, size, shared); 170 long size, boolean shared) throws IOException; 94 lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument 169 lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) argument
|
H A D | FileChannelImpl.java | 1070 public FileLock lock(long position, long size, boolean shared) argument 1074 if (shared && !readable) 1076 if (!shared && !writable) 1078 FileLockImpl fli = new FileLockImpl(this, position, size, shared); 1090 n = nd.lock(fd, true, position, size, shared); 1094 assert shared; 1115 public FileLock tryLock(long position, long size, boolean shared) argument 1119 if (shared && !readable) 1121 if (!shared && !writable) 1123 FileLockImpl fli = new FileLockImpl(this, position, size, shared); [all...] |
/libcore/ojluni/src/main/native/ |
H A D | FileSystemPreferences.c | 68 jclass thisclass, jstring java_fname, jint permission, jboolean shared) { 79 if (shared == JNI_TRUE) { 85 if (shared == JNI_TRUE) { 67 Java_java_util_prefs_FileSystemPreferences_lockFile0(JNIEnv *env, jclass thisclass, jstring java_fname, jint permission, jboolean shared) argument
|
H A D | FileDispatcherImpl.c | 193 jboolean shared) 207 if (shared == JNI_TRUE) { 191 FileDispatcherImpl_lock0(JNIEnv *env, jobject this, jobject fdo, jboolean block, jlong pos, jlong size, jboolean shared) argument
|
/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 | 799 // shared lock, but it works on Windows & Linux. 1086 // shared lock, but it works on Windows & Linux. 3128 public FileLock lock(long position, long size, boolean shared) argument 3132 if (0 == position && Long.MAX_VALUE == size && false == shared) { 3187 public FileLock tryLock(long position, long size, boolean shared) argument 3191 if (0 == position && Long.MAX_VALUE == size && false == shared) {
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
H A D | FileSystemPreferences.java | 718 boolean shared; 721 shared = false; /* use exclusive lock for user prefs */ 724 otherwise use shared lock. */ 725 shared = !isSystemRootWritable; 728 if (!lockFile(shared)) 883 private boolean lockFile(boolean shared) throws SecurityException{ argument 892 result = lockFile0(lockFile.getCanonicalPath(), perm, shared); 941 lockFile0(String fileName, int permission, boolean shared); argument
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Calendar.java | 906 * <code>True</code> if zone references to a shared TimeZone object. 2880 // If the TimeZone object is shared by other Calendar instances, then 2897 * Sets the sharedZone flag to <code>shared</code>. 2899 void setZoneShared(boolean shared) { argument 2900 sharedZone = shared;
|