Examples of release()


Examples of CH.ifa.draw.framework.Drawing.release()

   protected void fireViewDestroyingEvent(DrawingView view) {
      log.info("Destroying view '" + view.drawing().getTitle() + "'");
      Drawing drawing = view.drawing();
      super.fireViewDestroyingEvent(view);
      drawing.release();
   }


   /**
    * Factory method to create a StorageFormatManager for supported storage formats.
View Full Code Here

Examples of CH.ifa.draw.framework.Figure.release()

               removeFromTable(figHolder);
               Figure fig = figHolder.getFigure();
               Figure figToRelease = super.orphan(fig);
               FigureChangeEvent ev = new FigureChangeEvent(fig);
               figureRequestUpdate(ev);
               figToRelease.release();
            }
            return "OK";
         }

         StorableFigureHolder figureHolder = StorableFigureHolder.fromBytes(content);
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.CountDown.release()

            try
            {
               if (msg instanceof TextMessage)
               {
                  log.debug(((TextMessage) msg).getText());
                  counter1.release();
               }
            }
            catch (Exception e)
            {
            }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.FIFOSemaphore.release()

               // log("passed barrier");
               lock=s.readLock();
               lock.attempt(TIMEOUT);
               log("1st read: value is " + value);
               assertEquals(10, value);
               sem.release(); // give t2 time to make the modification
               TestingUtil.sleepThread(100);

               sem.acquire(); // to read the uncommitted modification by t2
               log("2nd read: value is " + value + "; we should see t2's uncommitted change (20)");
               assertEquals(20, value); // we're seeing the modification by t2 before t2 committed (a.k.a. released the lock)
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.Latch.release()

            {
               log.error(e);
            }
            finally
            {
               latch.release();
            }
         }
      }, "closing thread");
      closerThread.start();
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.Mutex.release()

    if ((dbMutex = (Mutex) dbLocks.get(dbKeyName)) == null)
    {
      throw new PersistenceException("DB lock mutex not found for " + dbKeyName);
    }

    dbMutex.release();

    if (log.isDebugEnabled())
    {
      log.debug("Released mutex lock for " + dbKeyName);
    }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.Semaphore.release()

         }
         JGroupsThread jgThread = new JGroupsThread(drm, jgKeys, remote.getName(), semaphore);
         jgThread.start();
        
         // Launch the threads
         semaphore.release(count + 1);
        
         boolean reacquired = false;
         try
         {
            // Give the threads 5 secs to acquire the semaphore
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.Sync.release()

                } else {
                    signal = new Latch();
                    waitingReaders.add(signal);
                }
            } finally {
                shared.release();
            }

            // if we get here there was an active writer with
            // a dependency to the current id.
            // wait for the writer until it is done, then try again
View Full Code Here

Examples of aQute.bnd.build.Project.release()

  @Override
  public void execute() throws BuildException {
    try {
      Project project = Workspace.getProject(getProject().getBaseDir());
      if (releaseRepo == null) {
        project.release(false);
      } else {
        project.release(releaseRepo);
      }

      if (report(project))
View Full Code Here

Examples of aleph.GlobalObject.release()

     join.waitFor();
     // Print out the result
     Matrix matrix = (Matrix) global.open("r");
     System.out.println("The result matrix is: ");
     System.out.println(matrix);
     try { global.release(); } catch (AlephException x) {}
     System.out.println("Elapsed time: " +
      ((double) (System.currentTimeMillis() - start)) / 1000.0
      + " seconds");
     System.out.flush();
   }
View Full Code Here
TOP
Copyright © 2015 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.