Examples of readUnlock()


Examples of org.drools.common.InternalRuleBase.readUnlock()

                otn.attach();
            }

            return otn;
        } finally {
            ruleBase.readUnlock();
        }
    }

    private static long getExpiratioOffsetForType(BuildContext context,
                                                  ObjectType objectType) {
View Full Code Here

Examples of org.drools.common.InternalRuleBase.readUnlock()

                otn.attach();
            }

            return otn;
        } finally {
            ruleBase.readUnlock();
        }
    }

    private static long getExpiratioOffsetForType(BuildContext context,
                                                  ObjectType objectType) {
View Full Code Here

Examples of org.drools.common.InternalRuleBase.readUnlock()

                otn.attach();
            }

            return otn;
        } finally {
            ruleBase.readUnlock();
        }
    }

    private static long getExpiratioOffsetForType(BuildContext context,
                                                  ObjectType objectType) {
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.RSyntaxDocument.readUnlock()

               {}
            }
         }
         finally
         {
            doc.readUnlock();
         }
      }
      if (selectedText == null)
         return "";
      else
View Full Code Here

Examples of org.geotools.caching.spatialindex.NodeIdentifier.readUnLock()

      }
      try {
        for (Iterator<NodeIdentifier> iterator = readlocks.iterator(); iterator.hasNext();) {
          NodeIdentifier type = (NodeIdentifier) iterator.next();
          try{
              type.readUnLock();
          }catch (Exception ex){
          //    logger.log(Level.SEVERE, "Could not release read lock.", ex);
          }
        }
      } catch (Exception ex) {
View Full Code Here

Examples of org.geotools.caching.spatialindex.NodeIdentifier.readUnLock()

          cacheFeatureReader = new GridCacheFeatureReader(found, (GridSpatialIndex)grid.getIndex());
      }else{
          //need a write lock; release all read locks
          for( Iterator<NodeIdentifier> iterator = found.iterator(); iterator.hasNext(); ) {
                    NodeIdentifier nodeid = (NodeIdentifier) iterator.next();
                    nodeid.readUnLock();
          }
          this.grid.readUnLock();
          this.grid.writeLock();
          try{
              //re-get read locks
View Full Code Here

Examples of org.geotools.caching.spatialindex.NodeIdentifier.readUnLock()

              }
          }
          if (found != null){
              for( Iterator<NodeIdentifier> iterator = found.iterator(); iterator.hasNext(); ) {
                    NodeIdentifier nodeid = (NodeIdentifier) iterator.next();
                    nodeid.readUnLock();
                }
          }
        if (missing != null){
            this.grid.unregister(missing);
        }
View Full Code Here

Examples of org.geotools.caching.spatialindex.NodeIdentifier.readUnLock()

                iterator.remove();
                continue;
            }
            if (!nodeid.isValid()) {
                // this node is no longer valid add to missing list
                nodeid.readUnLock();
                missing.add(nodeid);
                iterator.remove();
            }
        }
    }
View Full Code Here

Examples of org.gephi.graph.api.Graph.readUnlock()

                    if (id == null || id.isEmpty()) {
                        node = gec.createNode(null);//id null or empty, assign one
                    } else {
                        graph.readLock();
                        node = graph.getNode(id);
                        graph.readUnlock();
                        if (node != null) {//Node with that id already in graph
                            if (assignNewNodeIds) {
                                node = gec.createNode(null);
                            }
                        } else {
View Full Code Here

Examples of org.gephi.graph.api.Graph.readUnlock()

                    continue;//No correct source and target ids were provided, ignore row
                }

                graph.readLock();
                source = graph.getNode(sourceId);
                graph.readUnlock();

                if (source == null) {
                    if (createNewNodes) {//Create new nodes when they don't exist already and option is enabled
                        if (source == null) {
                            source = gec.createNode(null, sourceId);
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.