Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for mergeFrom (0.13 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/ImmutableActionSetTest.groovy

            def empty = ImmutableActionSet.empty()
    
            expect:
            def set = empty.mergeFrom(empty)
            set.is(empty)
        }
    
        def "can merge empty set into singleton set"() {
            def action = Mock(Action)
            def singleton = ImmutableActionSet.of(action)
    
            expect:
            def set = singleton.mergeFrom(ImmutableActionSet.empty())
            set.is(singleton)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BTreePersistentIndexedCache.java

                        left.mergeFrom(this);
                        left.maybeSplit();
                        return;
                    } else {
                        // There are only enough entries to make up 1 block, so move the entries of the left sibling into
                        // this block and discard the left sibling. Might also need to merge the parent
                        left.mergeFrom(this);
                        parent.maybeMerge();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  3. tensorflow/cc/training/queue_runner.cc

      if (!cg_mu_) {
        return Status(absl::StatusCode::kFailedPrecondition,
                      "This QueueRunner doesn't collect a cost graph.");
      }
      mutex_lock l(*cg_mu_);
      cost_graph->MergeFrom(*cost_graph_);
      return absl::OkStatus();
    }
    
    void QueueRunner::SetRunArgumentsAndCostGraph(const RunOptions& run_options) {
      cg_mu_.reset(new mutex());
      {
        mutex_lock l(*cg_mu_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/DefaultNamedDomainObjectCollection.java

            public AbstractDomainObjectCreatingProvider(String name, Class<I> type, @Nullable Action<? super I> configureAction) {
                super(name, type);
                this.onCreate = ImmutableActionSet.<I>empty().mergeFrom(getEventRegister().getAddActions());
    
                if (configureAction != null) {
                    configure(configureAction);
                }
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 16:54:51 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/ImmutableActionSet.java

            return new SetWithManyActions<T>(set);
        }
    
        /**
         * Creates a new set that includes the actions from this set plus the actions from the given set.
         */
        public ImmutableActionSet<T> mergeFrom(ImmutableActionSet<? super T> sibling) {
            if (sibling == this) {
                return this;
            }
            if (sibling.isEmpty()) {
                return this;
            }
            if (isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskContainer.java

                        } else {
                            onCreate = Cast.uncheckedCast(taskProvider.getOnCreateActions().mergeFrom(getEventRegister().getAddActions()));
                        }
    
                        add(task, onCreate);
                        return; // Exit early as we are reusing the create actions from the provider
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 09:54:40 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top