Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,377 for waitc (0.07 sec)

  1. src/runtime/race/testdata/waitgroup_test.go

    		wg.Done()
    		c <- true
    	}()
    	time.Sleep(50 * time.Millisecond)
    	wg.Wait()
    	<-c
    	<-c
    }
    
    func TestNoRaceWaitGroupMultipleWait(t *testing.T) {
    	c := make(chan bool, 2)
    	var wg sync.WaitGroup
    	go func() {
    		wg.Wait()
    		c <- true
    	}()
    	go func() {
    		wg.Wait()
    		c <- true
    	}()
    	wg.Wait()
    	<-c
    	<-c
    }
    
    func TestNoRaceWaitGroupMultipleWait2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          threadUnexpectedException(t);
        }
      }
    
      //     /**
      //      * Spin-waits up to LONG_DELAY_MS until flag becomes true.
      //      */
      //     public void await(AtomicBoolean flag) {
      //         await(flag, LONG_DELAY_MS);
      //     }
    
      //     /**
      //      * Spin-waits up to the specified timeout until flag becomes true.
      //      */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  3. src/runtime/runtime2.go

    	waitReasonGCSweepWait                             // "GC sweep wait"
    	waitReasonGCScavengeWait                          // "GC scavenge wait"
    	waitReasonChanReceive                             // "chan receive"
    	waitReasonChanSend                                // "chan send"
    	waitReasonFinalizerWait                           // "finalizer wait"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  4. pkg/kube/kclient/crdwatcher.go

    	c.mutex.Unlock()
    	kube.WaitForCacheSync("crd watcher", stop, c.crds.HasSynced)
    	c.queue.Run(stop)
    	c.crds.ShutdownHandlers()
    }
    
    // WaitForCRD waits until the request CRD exists, and returns true on success. A false return value
    // indicates the CRD does not exist but the wait failed or was canceled.
    // This is useful to conditionally enable controllers based on CRDs being created.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/watch/filter.go

    func (fw *filteredWatch) ResultChan() <-chan Event {
    	return fw.result
    }
    
    // Stop stops the upstream watch, which will eventually stop this watch.
    func (fw *filteredWatch) Stop() {
    	fw.incoming.Stop()
    }
    
    // loop waits for new values, filters them, and resends them.
    func (fw *filteredWatch) loop() {
    	defer close(fw.result)
    	for event := range fw.incoming.ResultChan() {
    		filtered, keep := fw.f(event)
    		if keep {
    			fw.result <- filtered
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/reconciler/reconciler.go

    	Run(ctx context.Context)
    }
    
    // NewReconciler returns a new instance of Reconciler that waits loopPeriod
    // between successive executions.
    // loopPeriod is the amount of time the reconciler loop waits between
    // successive executions.
    // maxWaitForUnmountDuration is the max amount of time the reconciler will wait
    // for the volume to be safely unmounted, after this it will detach the volume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 21:02:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

      /**
       * Asserts that a prior call that had caused this thread to block or wait has since returned
       * normally.
       */
      public void assertPriorCallReturns(@Nullable String methodName) throws Exception {
        assertEquals(null, getResponse(methodName).getResult());
      }
    
      /**
       * Asserts that a prior call that had caused this thread to block or wait has since returned the
       * expected boolean value.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LoadingCache.java

       * necessary. No observable state associated with this cache is modified until loading completes.
       *
       * <p>If another call to {@link #get} or {@link #getUnchecked} is currently loading the value for
       * {@code key}, simply waits for that thread to finish and returns its loaded value. Note that
       * multiple threads can concurrently load values for distinct keys.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Aug 06 17:12:03 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  9. src/sync/waitgroup_test.go

    			atomic.AddInt32(n, 1)
    			wg.Done()
    		}()
    		// Wait for goroutine 1 and 2
    		wg.Wait()
    		if atomic.LoadInt32(n) != 2 {
    			t.Fatal("Spurious wakeup from Wait")
    		}
    	}
    }
    
    func TestWaitGroupAlign(t *testing.T) {
    	type X struct {
    		x  byte
    		wg WaitGroup
    	}
    	var x X
    	x.wg.Add(1)
    	go func(x *X) {
    		x.wg.Done()
    	}(&x)
    	x.wg.Wait()
    }
    
    func BenchmarkWaitGroupUncontended(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 14 17:38:39 UTC 2021
    - 3K bytes
    - Viewed (0)
  10. src/syscall/syscall_aix.go

    func ReadDirent(fd int, buf []byte) (n int, err error) {
    	return getdirent(fd, buf)
    }
    
    //sys  wait4(pid _Pid_t, status *_C_int, options int, rusage *Rusage) (wpid _Pid_t, err error)
    
    func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
    	var status _C_int
    	var r _Pid_t
    	err = ERESTART
    	// AIX wait4 may return with ERESTART errno, while the process is still
    	// active.
    	for err == ERESTART {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top