Examples of unlock()


Examples of org.kiji.schema.util.Lock.unlock()

        }
      } finally {
        layoutTracker.close();
      }
    } finally {
      lock.unlock();
      lock.close();
    }
  }

  /**
 
View Full Code Here

Examples of org.lealone.dbobject.table.Table.unlock()

        // locks is modified in the loop
        for (int i = 0; i < locks.size(); i++) {
            Table t = locks.get(i);
            if (!t.isLockedExclusively()) {
                synchronized (database) {
                    t.unlock(this);
                    locks.remove(i);
                }
                i--;
            }
        }
View Full Code Here

Examples of org.locationtech.udig.project.internal.impl.SynchronizedEList.unlock()

                            if (next instanceof ContextModelItemProvider
                                    && ((ContextModelItemProvider) next).getAdapterFactory() == getAdapterFactory())
                                found = true;
                        }
                    } finally {
                        adapters.unlock();
                    }
                    if (!found) {
                        ContextModelItemProvider provider = new ContextModelItemProvider(
                                getAdapterFactory());
                        adapters.add(provider);
View Full Code Here

Examples of org.locationtech.udig.tools.edit.support.TestHandler.unlock()

        assertFalse(ran[0]);
        assertFalse(ran[1]);
        assertTrue(ran[2]);
        try {

            handler.unlock(object);
            fail("only a behaviour with the same key as the locking behaviour should be able" + //$NON-NLS-1$
                    "to unlock the handler"); //$NON-NLS-1$
        } catch (Exception e) {
            // good
        }
View Full Code Here

Examples of org.menagerie.locks.ReentrantZkLock.unlock()

                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        }finally{
            mapLock.unlock();
        }
    }


    @Override
View Full Code Here

Examples of org.modeshape.jcr.cache.MutableCachedNode.unlock()

                    CachedNode lockedNode = internalSession.getWorkspace().getNode(lockedNodeKey);
                    if (lockedNode != null) {
                        MutableCachedNode mutableLockedNode = internalSession.mutable(lockedNodeKey);
                        mutableLockedNode.removeProperty(internalSession, JcrLexicon.LOCK_IS_DEEP);
                        mutableLockedNode.removeProperty(internalSession, JcrLexicon.LOCK_OWNER);
                        mutableLockedNode.unlock();
                    }
                }
                internalSession.save();
            }
        } catch (Throwable t) {
View Full Code Here

Examples of org.mt4j.input.inputData.InputCursor.unlock()

   * @param cursors the cursors
   */
  protected void unLock(InputCursor... cursors){
    for (int i = 0; i < cursors.length; i++) {
      InputCursor inputCursor = cursors[i];
      inputCursor.unlock(this);
    }
  }
 
 
  @Override
View Full Code Here

Examples of org.netbeans.modules.editor.indent.api.Reformat.unlock()

                    }
                }
            });

        } finally {
            reformatter.unlock();
        }

    }

    /**
 
View Full Code Here

Examples of org.openqa.selenium.firefox.internal.Lock.unlock()

      return new NewProfileExtensionConnection(lock, bin, profile, host);
    } catch (Exception e) {
      throw new WebDriverException(e);
    } finally {
      lock.unlock();
    }
  }

  @Override
  protected void stopClient() {
View Full Code Here

Examples of org.openqa.selenium.firefox.internal.SocketLock.unlock()

      return new NewProfileExtensionConnection(lock, bin, profile, host);
    } catch (Exception e) {
      throw new WebDriverException(e);
    } finally {
      lock.unlock();
    }
  }

  @Override
  protected void stopClient() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.