Examples of unlock()


Examples of ae.sun.java2d.pipe.RenderQueue.unlock()

                    public void run() {
                        doDispose(disposer);
                    }
                });
            } finally {
                rq.unlock();
            }
        } else {
            doDispose(disposer);
        }
    }
View Full Code Here

Examples of cc.mallet.types.Instance.unLock()

        Instance inst = trainingSet.get(ii);
        if (inst.getLabeling() != null)
          trainingSet2.add(inst, 1.0);
        else {
          Instance inst2 = inst.shallowCopy();
          inst2.unLock();
          inst2.setLabeling(c.classify(inst).getLabeling());
          inst2.lock();
          trainingSet2.add(inst2, unlabeledDataWeight);
        }
      }
View Full Code Here

Examples of cli.System.IO.FileStream.Unlock()

            try
            {
                if (false) throw new cli.System.ArgumentOutOfRangeException();
                if (false) throw new cli.System.IO.IOException();
                if (false) throw new cli.System.ObjectDisposedException("");
                fs.Unlock(pos, size);
            }
            catch (cli.System.ArgumentOutOfRangeException x)
            {
                throw new IOException(x.getMessage());
            }
View Full Code Here

Examples of cn.com.manager.domains.Task.unLock()

                }
            }
            return result;
        } finally {
            if (capured) {
                task.unLock();
            }
        }

    }
View Full Code Here

Examples of co.paralleluniverse.strands.concurrent.ReentrantLock.unlock()

                        LOG.debug("Received root {} ({})", rootName, Long.toHexString(id));
                        lck0.lock();
                        try {
                            cond.signalAll();
                        } finally {
                            lck0.unlock();
                        }
                        store.setListener(root, null);
                    }
                }
            });
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.zookeeper.lock.DistributedLock.unlock()

            return true;
        } catch (KeeperException e) {
            throw new ArbitrateException("Termin_process", e);
        } finally {
            try {
                lock.unlock();// 马上进行释放
            } catch (KeeperException e1) {
                // ignore
            }
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.zookeeper.lock.DistributedReentrantLock.unlock()

                    } catch (KeeperException e) {
                        want.fail();
                    } finally {
                        latch.countDown();
                        try {
                            lock.unlock();
                        } catch (KeeperException e) {
                            want.fail();
                        }
                    }
View Full Code Here

Examples of com.alimama.mdrill.utils.TryLockFile.unlock()

      lock.trylock();
      path=pathToLocal(req, tablename);
    }finally{
      if(lock!=null)
      {
        lock.unlock();
      }
    }
    LOG.info("###joinpath###"+path);
    return req.getCore().getSearcherByPath(null,"join@"+SolrResourceLoader.getCacheFlushKey(null)+"@"+String.valueOf(path), path, false, false, false);
  }
View Full Code Here

Examples of com.aragost.javahg.Repository.unlock()

            repo.lock();
            try {
                boolean createdNewChangeset = ((GraftCommand) getCommand()).executeContinue();
                return createdNewChangeset ? repo.tip() : null;
            } finally {
                repo.unlock();
            }
        } else {
            CommitCommand cmd = CommitCommand.on(repo);
            cmd.user(this.rollbackChangeset.getUser());
            cmd.date(this.rollbackChangeset.getTimestamp());
View Full Code Here

Examples of com.arjuna.ats.arjuna.utils.FileLock.unlock()

    protected synchronized boolean unlock (File fd)
    {
  FileLock fileLock = new FileLock(fd);

  return fileLock.unlock();
    }
   
    /**
     * Unlock and close the file. Note that if the unlock fails we set
     * the return value to false to indicate an error but rely on the
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.