Package aleph

Examples of aleph.GlobalObject.release()


  gmin = ga;
      } /* if */
      oldga = ga;
      ga = a._next;
      try {
  oldga.release();
      } catch (AlephException ale) {
  Aleph.warning("Release failed: " + ale.getMessage());
      }
    } /* for ga... */

 
View Full Code Here


  gmin = gb;
      } /* if */
      oldgb = gb;
      gb = b._next;
      try {
  oldgb.release();
      } catch (AlephException ale) {
  Aleph.warning("Release failed: " + ale.getMessage());
      }
    } /* for tmp... */

 
View Full Code Here

          index = subindex(xp, level);
          level >>= 1;
 
          if (cell.next[index] == null) {
            try{
              gCell.release();
            }catch (AlephException e) {}
            cell = (Cell) gCell.open( "w" );
            in_write_mode = true;
            if (cell.next[index] == null) {
              cell.next[index] = gBody;
View Full Code Here

            cell = (Cell) gCell.open( "w" );
            in_write_mode = true;
            if (cell.next[index] == null) {
              cell.next[index] = gBody;
              try{
                gCell.release();
              }catch (AlephException e) {}
              break;
            }
          }
          if (!cell.isCell(index)) {
View Full Code Here

            }
          }
          if (!cell.isCell(index)) {
            if (!in_write_mode) {
              try{
                gCell.release();
              }catch (AlephException e) {}
              cell = (Cell) gCell.open( "w" );
            }
            if (!cell.isCell(index)) {
              cell.next[index] = newCell(cell.next[index], level, data);
View Full Code Here

        body = (Body) gBody.open( "r" );
        SETVS(acc, 0.0);
        SETV(pos0, body.pos);
 
        try{ // release as soon as possible
          gBody.release();
        } catch (AlephException e) { }
 
        hackgrav(gBody, gRoot, pos0, acc, rsize*rsize, true);
 
        // open for write
View Full Code Here

        body = (Body) gBody.open( "w" );
 
        MULVS(dvel, acc, dtime);
        ADDV(body.vel, body.vel, dvel);
        try{
          gBody.release();
        } catch (AlephException e) { }
      }
 
      return (Object) data;
View Full Code Here

        gBody = bodyTab[data.bodies_there++];
        body = (Body) gBody.open( "w" );
        MULVS(dpos, body.vel, dtime);
        ADDV(body.pos, body.pos, dpos);
        try{
          gBody.release();
        } catch( AlephException e ){}
      }

      return (Object) data;
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.