Lines Matching refs:sync
135 // The sync object does all the hard work. We just forward to it.
136 private final Sync sync = new Sync();
138 public void lock() { sync.acquire(1); }
139 public boolean tryLock() { return sync.tryAcquire(1); }
140 public void unlock() { sync.release(1); }
141 public Condition newCondition() { return sync.newCondition(); }
142 public boolean isLocked() { return sync.isHeldExclusively(); }
143 public boolean hasQueuedThreads() { return sync.hasQueuedThreads(); }
145 sync.acquireInterruptibly(1);
148 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
151 public AbstractOwnableSynchronizer getSync() { return sync; }