Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for currentTask (0.13 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/TaskExecutionAccessCheckers.kt

            if (shouldReportExecutionTimeAccess(task)) {
                broadcaster.onConventionAccess(invocationDescription, task, currentTask())
            }
        }
    
        private
        fun currentTask() = workExecutionTracker.currentTask.orElse(null)
    
        protected
        abstract fun shouldReportExecutionTimeAccess(task: TaskInternal): Boolean
    }
    
    
    object TaskExecutionAccessCheckers {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          taskRunner.assertThreadHoldsLock()
          require(currentTask == this)
          activeThreads++
    
          tasksExecutor.execute {
            taskRunner.assertThreadDoesntHoldLock()
            require(currentTask == this)
            try {
              runnable.run()
              require(currentTask == this) { "unexpected current task: $currentTask" }
            } finally {
              taskRunner.lock.withLock {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/services/internal/BuildServiceProviderNagger.java

        }
    
        @Override
        public void beforeGet(BuildServiceProvider<?, ?> provider) {
            currentTask().ifPresent(task -> {
                if (!isServiceRequiredBy(task, provider)) {
                    nagAboutUndeclaredUsageOf(provider, task);
                }
            });
        }
    
        private Optional<TaskInternal> currentTask() {
            return taskExecutionTracker.getCurrentTask();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 08:22:48 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

      }
    
      public void testToString() {
        final Runnable[] currentTask = new Runnable[1];
        final Executor delegate =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                currentTask[0] = task;
                task.run();
                currentTask[0] = null;
              }
    
              @Override
              public String toString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

      }
    
      public void testToString() {
        final Runnable[] currentTask = new Runnable[1];
        final Executor delegate =
            new Executor() {
              @Override
              public void execute(Runnable task) {
                currentTask[0] = task;
                task.run();
                currentTask[0] = null;
              }
    
              @Override
              public String toString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/initialization/ConfigurationCacheProblemsListener.kt

        private
        fun isInputTrackingDisabled() = !inputTrackingState.isEnabledForCurrentThread()
    
        private
        fun isExecutingWork() = workExecutionTracker.currentTask.isPresent || workExecutionTracker.isExecutingTransformAction
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

                }
            }
        }
    
        private
        fun isInputTrackingDisabled() = !inputTrackingState.isEnabledForCurrentThread()
    
        private
        fun isExecutingWork() = workExecutionTracker.currentTask.isPresent || workExecutionTracker.isExecutingTransformAction
    
        override fun fileObserved(file: File) {
            fileObserved(file, null)
        }
    
        override fun fileObserved(file: File, consumer: String?) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  8. pkg/kubelet/container/container_hash_test.go

    )
    
    func TestConsistentHashContainer(t *testing.T) {
    	container := &v1.Container{}
    	if err := json.Unmarshal([]byte(sampleContainer), container); err != nil {
    		t.Error(err)
    	}
    
    	currentHash := HashContainer(container)
    	if currentHash != sampleV131HashValue {
    		t.Errorf("mismatched hash value with v1.31")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. cmd/xl-storage_unix_test.go

    		t.Fatalf("Stat failed with %s expected to pass.", err)
    	}
    
    	// Get umask of the bits stored.
    	currentUmask := 0o777 - uint32(st.Mode().Perm())
    
    	// Verify if umask is correct.
    	if int(currentUmask) != testCase.expectedUmask {
    		t.Fatalf("Umask check failed expected %d, got %d", testCase.expectedUmask, currentUmask)
    	}
    }
    
    // Tests if the file creations happen with proper umask.
    func TestIsValidUmaskFile(t *testing.T) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. cmd/erasure-sets.go

    				s.erasureDisksMu.Unlock()
    				return
    			}
    
    			if currentDisk := s.erasureDisks[setIndex][diskIndex]; currentDisk != nil {
    				if !reflect.DeepEqual(currentDisk.Endpoint(), disk.Endpoint()) {
    					err = fmt.Errorf("Detected unexpected drive ordering refusing to use the drive: expecting %s, found %s, refusing to use the drive",
    						currentDisk.Endpoint(), disk.Endpoint())
    					printEndpointError(endpoint, err, false)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top