Home | History | Annotate | Download | only in jbosh

Lines Matching defs:lock

182      * Lock instance.
184 private final ReentrantLock lock = new ReentrantLock();
189 private final Condition notEmpty = lock.newCondition();
195 private final Condition notFull = lock.newCondition();
200 private final Condition drained = lock.newCondition();
255 * The following vars must be accessed via the lock instance.
485 lock.lock();
510 lock.unlock();
538 lock.lock();
550 lock.unlock();
611 lock.lock();
615 lock.unlock();
623 lock.lock();
637 lock.unlock();
661 lock.lock();
671 lock.unlock();
684 lock.lock();
692 lock.unlock();
701 lock.lock();
712 lock.unlock();
892 * This method assumes the lock is currently held.
965 lock.lock();
969 lock.unlock();
996 lock.lock();
1012 lock.unlock();
1048 lock.lock();
1054 // The following call handles the lock. It's not an escape.
1062 lock.unlock();
1094 lock.unlock();
1098 if (lock.isHeldByCurrentThread()) {
1106 lock.unlock();
1199 * Assert that the internal lock is held.
1203 if (!lock.isHeldByCurrentThread()) {
1204 throw(new AssertionError("Lock is not held by current thread"));
1211 * Assert that the internal lock is *not* held.
1215 if (lock.isHeldByCurrentThread()) {
1216 throw(new AssertionError("Lock is held by current thread"));
1292 * This method assumes the lock is currently held.
1339 * This method assumes the lock is currently held.
1367 * This method assumes the lock is currently held.
1467 final boolean hadLock = lock.isHeldByCurrentThread();
1469 lock.unlock();
1486 lock.lock();