Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MapIteratorCache (0.16 sec)

  1. android/guava/src/com/google/common/graph/StandardValueGraph.java

    @ElementTypesAreNonnullByDefault
    class StandardValueGraph<N, V> extends AbstractValueGraph<N, V> {
      private final boolean isDirected;
      private final boolean allowsSelfLoops;
      private final ElementOrder<N> nodeOrder;
    
      final MapIteratorCache<N, GraphConnections<N, V>> nodeConnections;
    
      long edgeCount; // must be updated when edges are added or removed
    
      /** Constructs a graph with the properties specified in {@code builder}. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/StandardNetwork.java

      private final ElementOrder<E> edgeOrder;
    
      final MapIteratorCache<N, NetworkConnections<N, E>> nodeConnections;
    
      // We could make this a Map<E, EndpointPair<N>>. It would make incidentNodes(edge) slightly
      // faster, but also make Networks consume 5 to 20+% (increasing with average degree) more memory.
      final MapIteratorCache<E, N> edgeToReferenceNode; // referenceNode == source if directed
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

         * The real purpose of this test is to produce a TSAN failure if MapIteratorCache is unsafe for
         * reads from multiple threads -- unsafe, in fact, even in the absence of a concurrent write.
         * The specific problem we had was unsafe reads of lastEntryReturnedBySomeIterator. (To fix the
         * problem, we've since marked that field as volatile.)
         *
         * When MapIteratorCache is used from Immutable* classes, the TSAN failure doesn't indicate a
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

         * The real purpose of this test is to produce a TSAN failure if MapIteratorCache is unsafe for
         * reads from multiple threads -- unsafe, in fact, even in the absence of a concurrent write.
         * The specific problem we had was unsafe reads of lastEntryReturnedBySomeIterator. (To fix the
         * problem, we've since marked that field as volatile.)
         *
         * When MapIteratorCache is used from Immutable* classes, the TSAN failure doesn't indicate a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
Back to top