Lines Matching refs:sync
240 * // The sync object does all the hard work. We just forward to it.
241 * private final Sync sync = new Sync();
243 * public void lock() { sync.acquire(1); }
244 * public boolean tryLock() { return sync.tryAcquire(1); }
245 * public void unlock() { sync.release(1); }
246 * public Condition newCondition() { return sync.newCondition(); }
247 * public boolean isLocked() { return sync.isHeldExclusively(); }
248 * public boolean hasQueuedThreads() { return sync.hasQueuedThreads(); }
250 * sync.acquireInterruptibly(1);
254 * return sync.tryAcquireNanos(1, unit.toNanos(timeout));
280 * private final Sync sync = new Sync();
281 * public boolean isSignalled() { return sync.isSignalled(); }
282 * public void signal() { sync.releaseShared(1); }
284 * sync.acquireSharedInterruptibly(1);
413 * It will not be used as a sync queue node
430 * The field is initialized to 0 for normal sync nodes, and
1650 * a condition queue, is now waiting to reacquire on sync queue.
1671 * Returns true if node is on sync queue by searching backwards from tail.
1689 * Transfers a node from a condition queue onto sync queue.
1716 * Transfers node, if necessary, to sync queue after a cancelled wait.
1742 * @return previous sync state
2214 final boolean isOwnedBy(AbstractQueuedSynchronizer sync) {
2215 return sync == AbstractQueuedSynchronizer.this;