/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Semaphore.java | 130 private final Sync sync; field in class:Semaphore 236 sync = new NonfairSync(permits); 251 sync = fair ? new FairSync(permits) : new NonfairSync(permits); 283 sync.acquireSharedInterruptibly(1); 306 sync.acquireShared(1); 334 return sync.nonfairTryAcquireShared(1) >= 0; 380 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); 397 sync.releaseShared(1); 438 sync.acquireSharedInterruptibly(permits); 465 sync [all...] |
H A D | CountDownLatch.java | 160 private final Sync sync; field in class:CountDownLatch 171 this.sync = new Sync(count); 202 sync.acquireSharedInterruptibly(1); 248 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); 262 sync.releaseShared(1); 273 return sync.getCount(); 284 return super.toString() + "[Count = " + sync.getCount() + "]";
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
H A D | ReentrantLock.java | 80 private final Sync sync; field in class:ReentrantLock 228 sync = new NonfairSync(); 238 sync = fair ? new FairSync() : new NonfairSync(); 256 sync.lock(); 306 sync.acquireInterruptibly(1); 336 return sync.nonfairTryAcquire(1); 413 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); 428 sync.release(1); 471 return sync.newCondition(); 504 return sync [all...] |
H A D | ReentrantReadWriteLock.java | 195 final Sync sync; field in class:ReentrantReadWriteLock 212 sync = fair ? new FairSync() : new NonfairSync(); 676 private final Sync sync; field in class:ReentrantReadWriteLock.ReadLock 685 sync = lock.sync; 699 sync.acquireShared(1); 744 sync.acquireSharedInterruptibly(1); 771 return sync.tryReadLock(); 843 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); 853 sync 885 private final Sync sync; field in class:ReentrantReadWriteLock.WriteLock [all...] |
H A D | AbstractQueuedLongSynchronizer.java | 38 To keep sources in sync, the remainder of this source file is 40 name and changing ints related with sync state to longs. Please 160 * It will not be used as a sync queue node 177 * The field is initialized to 0 for normal sync nodes, and 1375 * a condition queue, is now waiting to reacquire on sync queue. 1396 * Returns true if node is on sync queue by searching backwards from tail. 1412 * Transfers a node from a condition queue onto sync queue. 1439 * Transfers node, if necessary, to sync queue after a cancelled wait. 1465 * @return previous sync state 1935 final boolean isOwnedBy(AbstractQueuedLongSynchronizer sync) { argument [all...] |
H A D | AbstractQueuedSynchronizer.java | 217 * // The sync object does all the hard work. We just forward to it. 218 * private final Sync sync = new Sync(); 220 * public void lock() { sync.acquire(1); } 221 * public boolean tryLock() { return sync.tryAcquire(1); } 222 * public void unlock() { sync.release(1); } 223 * public Condition newCondition() { return sync.newCondition(); } 224 * public boolean isLocked() { return sync.isHeldExclusively(); } 225 * public boolean hasQueuedThreads() { return sync.hasQueuedThreads(); } 227 * sync.acquireInterruptibly(1); 231 * return sync 2163 isOwnedBy(AbstractQueuedSynchronizer sync) argument [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | FileDescriptorTest.java | 28 new RandomAccessFile(f, "r").getFD().sync();
|
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | TimerTaskTest.java | 30 private final Object sync = new Object(); field in class:TimerTaskTest.TimerTestTask 53 synchronized (sync) { 54 sync.notify(); 181 synchronized (testTask.sync) { 183 testTask.sync.wait(500); 199 synchronized (testTask.sync) { 201 testTask.sync.wait(500);
|
H A D | TimerTest.java | 31 private final Object sync = new Object(); field in class:TimerTest 76 synchronized (sync) { 77 sync.notify(); 218 synchronized (sync) { 219 sync.wait(500); 232 synchronized (sync) { 233 sync.wait(500); 245 synchronized (sync) { 246 sync.wait(200); 248 sync [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | FileDescriptor.java | 69 public void sync() throws SyncFailedException { method in class:FileDescriptor
|
H A D | RandomAccessFile.java | 120 // if we are in "rws" mode, attempt to sync file+metadata 123 fd.sync(); 636 // if we are in "rws" mode, attempt to sync file+metadata 638 fd.sync(); 690 // if we are in "rws" mode, attempt to sync file+metadata 692 fd.sync();
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | PreferencesTest.java | 41 userPreferences.sync();
|
H A D | OldAbstractPreferencesTest.java | 853 pref.sync(); 858 pref.sync();
|
H A D | OldPreferencesTest.java | 95 p.sync(); 1096 public void sync() throws BackingStoreException { method in class:OldPreferencesTest.MockPreferences
|
/libcore/luni/src/main/java/java/util/prefs/ |
H A D | Preferences.java | 47 * The {@code flush()} and {@code sync()} methods force the back-end to 51 * {@code flush()} or {@code sync()} method returns. Please note that if the JVM 780 public abstract void sync() throws BackingStoreException; method in class:Preferences
|
H A D | AbstractPreferences.java | 327 * nodes at once should override the method {@link #sync() sync()}. 779 public void sync() throws BackingStoreException { method in class:AbstractPreferences 785 child.sync();
|