/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Semaphore.java | 132 private final Sync sync; field in class:Semaphore 238 sync = new NonfairSync(permits); 253 sync = fair ? new FairSync(permits) : new NonfairSync(permits); 285 sync.acquireSharedInterruptibly(1); 308 sync.acquireShared(1); 336 return sync.nonfairTryAcquireShared(1) >= 0; 382 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); 399 sync.releaseShared(1); 440 sync.acquireSharedInterruptibly(permits); 468 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 | 81 private final Sync sync; field in class:ReentrantLock 231 sync = new NonfairSync(); 241 sync = fair ? new FairSync() : new NonfairSync(); 259 sync.lock(); 309 sync.acquireInterruptibly(1); 339 return sync.nonfairTryAcquire(1); 417 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); 432 sync.release(1); 475 return sync.newCondition(); 508 return sync [all...] |
H A D | ReentrantReadWriteLock.java | 196 final Sync sync; field in class:ReentrantReadWriteLock 213 sync = fair ? new FairSync() : new NonfairSync(); 680 private final Sync sync; field in class:ReentrantReadWriteLock.ReadLock 689 sync = lock.sync; 703 sync.acquireShared(1); 748 sync.acquireSharedInterruptibly(1); 775 return sync.tryReadLock(); 848 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); 858 sync 890 private final Sync sync; field in class:ReentrantReadWriteLock.WriteLock [all...] |
H A D | AbstractQueuedLongSynchronizer.java | 36 To keep sources in sync, the remainder of this source file is 38 name and changing ints related with sync state to longs. Please 158 * It will not be used as a sync queue node 175 * The field is initialized to 0 for normal sync nodes, and 1373 * a condition queue, is now waiting to reacquire on sync queue. 1394 * Returns true if node is on sync queue by searching backwards from tail. 1410 * Transfers a node from a condition queue onto sync queue. 1437 * Transfers node, if necessary, to sync queue after a cancelled 1463 * @return previous sync state 1948 final boolean isOwnedBy(AbstractQueuedLongSynchronizer sync) { argument [all...] |
H A D | AbstractQueuedSynchronizer.java | 215 * // The sync object does all the hard work. We just forward to it. 216 * private final Sync sync = new Sync(); 218 * public void lock() { sync.acquire(1); } 219 * public boolean tryLock() { return sync.tryAcquire(1); } 220 * public void unlock() { sync.release(1); } 221 * public Condition newCondition() { return sync.newCondition(); } 222 * public boolean isLocked() { return sync.isHeldExclusively(); } 223 * public boolean hasQueuedThreads() { return sync.hasQueuedThreads(); } 225 * sync.acquireInterruptibly(1); 229 * return sync 2176 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 | 30 Object sync = new Object(); field in class:TimerTest 72 synchronized (sync) { 73 sync.notify(); 104 synchronized (sync) { 106 sync.wait(1000); 130 synchronized (sync) { 132 sync.wait(1000); 156 synchronized (sync) { 158 sync.wait(1000); 194 synchronized (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(); 639 // if we are in "rws" mode, attempt to sync file+metadata 641 fd.sync(); 693 // if we are in "rws" mode, attempt to sync file+metadata 695 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();
|