Lines Matching refs:sync
224 // The sync object does all the hard work. We just forward to it.
225 private final Sync sync = new Sync();
227 public void lock() { sync.acquire(1); }
228 public boolean tryLock() { return sync.tryAcquire(1); }
229 public void unlock() { sync.release(1); }
230 public Condition newCondition() { return sync.newCondition(); }
231 public boolean isLocked() { return sync.isHeldExclusively(); }
232 public boolean hasQueuedThreads() { return sync.hasQueuedThreads(); }
234 sync.acquireInterruptibly(1);
237 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
240 public Thread getLockOwner() { return sync.getLockOwner(); }
242 public AbstractOwnableSynchronizer getSync() { return sync; }