Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 3,642 for ctan (0.06 sec)

  1. cni/pkg/install/cniconfig_test.go

    			// Call with goroutine to test fsnotify watcher
    			parent, cancel := context.WithCancel(context.Background())
    			defer cancel()
    			resultChan, errChan := make(chan string, 1), make(chan error, 1)
    			go func(resultChan chan string, errChan chan error, ctx context.Context, cniConfName, mountedCNINetDir string, chained bool) {
    				result, err := getCNIConfigFilepath(ctx, cniConfName, mountedCNINetDir, chained)
    				if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package semaphore provides a weighted semaphore implementation.
    package semaphore // import "golang.org/x/sync/semaphore"
    
    import (
    	"container/list"
    	"context"
    	"sync"
    )
    
    type waiter struct {
    	n     int64
    	ready chan<- struct{} // Closed when semaphore acquired.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/internal/fmtsort/sort.go

    		switch {
    		case a == b:
    			return 0
    		case a:
    			return 1
    		default:
    			return -1
    		}
    	case reflect.Pointer, reflect.UnsafePointer:
    		return cmp.Compare(aVal.Pointer(), bVal.Pointer())
    	case reflect.Chan:
    		if c, ok := nilCompare(aVal, bVal); ok {
    			return c
    		}
    		return cmp.Compare(aVal.Pointer(), bVal.Pointer())
    	case reflect.Struct:
    		for i := 0; i < aVal.NumField(); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. cmd/consolelogger.go

    func (sys *HTTPConsoleLoggerSys) HasLogListeners() bool {
    	return sys != nil && sys.pubsub.Subscribers() > 0
    }
    
    // Subscribe starts console logging for this node.
    func (sys *HTTPConsoleLoggerSys) Subscribe(subCh chan log.Info, doneCh <-chan struct{}, node string, last int, logKind madmin.LogMask, filter func(entry log.Info) bool) error {
    	// Enable console logging for remote client.
    	if !sys.HasLogListeners() {
    		logger.AddSystemTarget(GlobalContext, sys)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. cmd/data-scanner_test.go

    	globalBucketObjectLockSys = &BucketObjectLockSys{}
    	globalBucketVersioningSys = &BucketVersioningSys{}
    	es := newExpiryState(context.Background(), objAPI, 0)
    	workers := []chan expiryOp{make(chan expiryOp)}
    	es.workers.Store(&workers)
    	globalExpiryState = es
    	var wg sync.WaitGroup
    	wg.Add(1)
    	expired := make([]ObjectToDelete, 0, 5)
    	go func() {
    		defer wg.Done()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/testprog/wait-on-pipe.go

    	var p [2]int
    	if err := syscall.Pipe(p[:]); err != nil {
    		log.Fatalf("failed to create pipe: %v", err)
    	}
    	rfd, wfd := p[0], p[1]
    
    	// Create a goroutine that blocks on the pipe.
    	done := make(chan struct{})
    	go func() {
    		var data [1]byte
    		_, err := syscall.Read(rfd, data[:])
    		if err != nil {
    			log.Fatalf("failed to read from pipe: %v", err)
    		}
    		done <- struct{}{}
    	}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. pkg/kube/krt/internal.go

    	for _, o := range opts {
    		o(c)
    	}
    	if c.stop == nil {
    		c.stop = make(chan struct{})
    	}
    	return *c
    }
    
    // collectionOptions tracks options for a collection
    type collectionOptions struct {
    	name         string
    	augmentation func(o any) any
    	stop         <-chan struct{}
    }
    
    // dependency is a specific thing that can be depended on
    type dependency struct {
    	id             collectionUID
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server_test.go

    			expectedCommand := "ls -a"
    			expectedStdin := "stdin"
    			expectedStdout := "stdout"
    			expectedStderr := "stderr"
    			done := make(chan struct{})
    			clientStdoutReadDone := make(chan struct{})
    			clientStderrReadDone := make(chan struct{})
    			execInvoked := false
    			attachInvoked := false
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/reconciler/reconciler.go

    limitations under the License.
    */
    
    package reconciler
    
    import (
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/klog/v2"
    )
    
    func (rc *reconciler) Run(stopCh <-chan struct{}) {
    	rc.reconstructVolumes()
    	klog.InfoS("Reconciler: start to sync state")
    	wait.Until(rc.reconcile, rc.loopSleepDuration, stopCh)
    }
    
    func (rc *reconciler) reconcile() {
    	readyToUnmount := rc.readyToUnmount()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. pkg/kube/multicluster/secretcontroller_test.go

    func (t *testController) ConfigClusterHandler() testHandler {
    	return t.component.clusters["config"]
    }
    
    func (t *testController) Run(stop chan struct{}) {
    	assert.NoError(t.t, t.controller.Run(stop))
    	t.client.RunAndWait(stop)
    }
    
    func TestListRemoteClusters(t *testing.T) {
    	stop := make(chan struct{})
    	c := buildTestController(t, false)
    	c.AddSecret("s0", "c0")
    	c.AddSecret("s1", "c1")
    	c.Run(stop)
    
    	// before sync
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top