Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,083 for watched (0.37 sec)

  1. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/WatchedHierarchiesTest.groovy

        def "does not watch when there's nothing to watch"() {
            def watchable = Mock(WatchableHierarchies)
            when:
            def watched = resolveWatchedFiles(watchable, buildHierarchy([]))
            then:
            rootsOf(watched) == []
            1 * watchable.stream() >> Stream.of()
        }
    
        def "watches empty directory"() {
            def watchable = Mock(WatchableHierarchies)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. pilot/pkg/keycertbundle/watcher_test.go

    			t.Errorf("got wrong keyCertBundle %v", keyCertBundle)
    		}
    	default:
    		t.Errorf("watcher2 watched non keyCertBundle")
    	}
    }
    
    func TestWatcherFromFile(t *testing.T) {
    	watcher := NewWatcher()
    
    	// 1. no key cert bundle
    	_, watch1 := watcher.AddWatcher()
    	select {
    	case bundle := <-watch1:
    		t.Errorf("watched unexpected keyCertBundle: %v", bundle)
    		return
    	default:
    	}
    
    	tmpDir := t.TempDir()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 28 17:46:00 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdater.java

     *   each call augmenting the collection. The watchers will be updated accordingly.
     * - When updating the watches, we watch watchable hierarchies registered for this build or old watched directories from previous builds instead of
     *   directories inside them.
     * - At the end of the build
     *   - stop watching the watchable directories with nothing to watch inside
     *   - remember the currently watched directories as old watched directories for the next build
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/FileNotifyInformation.java

        // filter flags
    
        /**
         * Any file name change in the watched directory or subtree causes a change notification wait operation to return.
         * Changes include renaming, creating, or deleting a file.
         */
        public static final int FILE_NOTIFY_CHANGE_FILE_NAME = 0x00000001;
    
        /**
         * Any directory-name change in the watched directory or subtree causes a change notification wait operation to
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.9K bytes
    - Viewed (0)
  5. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/FileWatcherUpdater.java

     *     operating system to watch.
     *     See {@link org.gradle.internal.watch.registry.impl.HierarchicalFileWatcherUpdater}.</dd>
     *
     *     <dt>watched directories</dt>
     *     <dd>On OSs with non-hierarchical file system events (currently Linux only) we don't watch whole
     *     hierarchies, but need to individually watch each directory and its immediate children.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. pkg/filewatcher/filewatcher.go

    type fileWatcher struct {
    	mu sync.RWMutex
    
    	// The watcher maintain a map of workers,
    	// keyed by watched dir (parent dir of watched files).
    	workers map[string]*workerState
    
    	funcs *patchTable
    }
    
    type workerState struct {
    	worker *worker
    	count  int
    }
    
    // functions that can be replaced in a test setting
    type patchTable struct {
    	newWatcher     func() (*fsnotify.Watcher, error)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

                return
            }
            def watchedHierarchies = output.readLines()
                .find { it.contains("Watched directory hierarchies: [") }
                .with { line ->
                    def matcher = line =~ /Watched directory hierarchies: \[(.*)]/
                    String directories = matcher[0][1]
                    return (directories.empty
                        ? []
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients.h

      // Adds this tensor to the list of watched tensors.
      //
      // This is a no-op if the tensor is already being watched either from an
      // earlier call to `GradientTape::Watch` or being an output of an op with
      // watched inputs.
      void Watch(const AbstractTensorHandle*);
      // Records an operation with given inputs and outputs
      // on the tape and marks all its outputs as watched if at
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 26 10:27:05 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/impl/FileWatchingFilter.java

     *
     * - Locations known to be modified during a build might receive late file events that would invalidate VFS state we just
     *   captured after the changes; to avoid this, after a known modification we assume no further modifications will
     *   happen to the same location, and all file events belong the know modifications instead.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. pkg/util/filesystem/watcher.go

    	}
    
    	// Initialize watcher, fall back to no-op
    	var (
    		eventsCh chan fsnotify.Event
    		errorCh  chan error
    		watcher  watchAddRemover
    	)
    	if w, err := fsnotify.NewWatcher(); err != nil {
    		errorHandler(fmt.Errorf("error creating file watcher, falling back to poll at interval %s: %w", pollInterval, err))
    		watcher = noopWatcher{}
    	} else {
    		watcher = w
    		eventsCh = w.Events
    		errorCh = w.Errors
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top