Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 536 for waitc (0.06 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/interface.go

    	"context"
    
    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/client-go/tools/cache"
    )
    
    type Controller[T runtime.Object] interface {
    	// Meant to be run inside a goroutine
    	// Waits for and reacts to changes in whatever type the controller
    	// is concerned with.
    	//
    	// Returns an error always non-nil explaining why the worker stopped
    	Run(ctx context.Context) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/sync/runtime.go

    // defined in package runtime
    
    // Semacquire waits until *s > 0 and then atomically decrements it.
    // It is intended as a simple sleep primitive for use by the synchronization
    // library and should not be used directly.
    func runtime_Semacquire(s *uint32)
    
    // Semacquire(RW)Mutex(R) is like Semacquire, but for profiling contended
    // Mutexes and RWMutexes.
    // If lifo is true, queue waiter at the head of wait queue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. src/time/sleep.go

    // when f will run, in which case Reset returns true, or schedules f
    // to run again, in which case it returns false.
    // When Reset returns false, Reset neither waits for the prior f to
    // complete before returning nor does it guarantee that the subsequent
    // goroutine running f does not run concurrently with the prior
    // one. If the caller needs to know whether the prior execution of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/runtime/sigqueue.go

    				}
    			}
    		}
    
    		// Incorporate updates from sender into local copy.
    		for i := range sig.mask {
    			sig.recv[i] = atomic.Xchg(&sig.mask[i], 0)
    		}
    	}
    }
    
    // signalWaitUntilIdle waits until the signal delivery mechanism is idle.
    // This is used to ensure that we do not drop a signal notification due
    // to a race between disabling a signal and receiving a signal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. pkg/envoy/agent.go

    type exitStatus struct {
    	err error
    }
    
    // Run starts the envoy and waits until it terminates.
    // There are a few exit paths:
    //  1. Envoy exits. In this case, we simply log and exit.
    //  2. /quitquitquit (on agent, not Envoy) is called. We will set skipDrain and cancel the context, which triggers us to exit immediately.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 16:04:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. src/net/http/main_test.go

    		// shutting down, so give it some time.
    		time.Sleep(1 * time.Millisecond)
    	}
    	t.Errorf("Test appears to have leaked %s:\n%s", bad, stacks)
    }
    
    // waitCondition waits for fn to return true,
    // checking immediately and then at exponentially increasing intervals.
    func waitCondition(t testing.TB, delay time.Duration, fn func(time.Duration) bool) {
    	t.Helper()
    	start := time.Now()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/math/tanh.go

    //      MAXLOG = 8.8029691931113054295988e+01 = log(2**127)
    //      MINLOG = -8.872283911167299960540e+01 = log(2**-128)
    //
    // A rational function is used for |x| < 0.625.  The form
    // x + x**3 P(x)/Q(x) of Cody & Waite is employed.
    // Otherwise,
    //      tanh(x) = sinh(x)/cosh(x) = 1  -  2/(exp(2x) + 1).
    //
    // ACCURACY:
    //
    //                      Relative error:
    // arithmetic   domain     # trials      peak         rms
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/lifecycle_signals.go

     	- the HTTP Server stops listening immediately
    	- any new request arriving on a new TCP socket is denied with
          a network error similar to 'connection refused'
        - the HTTP Server waits gracefully for existing requests to complete
          up to '60s' (dictated by ShutdownTimeout)
    	- active long running requests will receive a GOAWAY.
    
    T0+70s: HTTPServerStoppedListening:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:30 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/waitgroup/ratelimited_waitgroup.go

    	wg sync.WaitGroup
    	// Once Wait is initiated, all consecutive Done invocation will be
    	// rate limited using this rate limiter.
    	limiter RateLimiter
    	stopCtx context.Context
    
    	mu sync.Mutex
    	// wait indicate whether Wait is called, if true,
    	// then any Add with positive delta will return error.
    	wait bool
    	// number of request(s) currently using the wait group
    	count int
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 21 14:08:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/waitgroup/ratelimited_waitgroup_test.go

    			target.Add(1)
    		}()
    	}
    	wg.Wait()
    
    	waitingCh := make(chan struct{})
    	wg.Add(n)
    	for i := 0; i < n; i++ {
    		go func() {
    			defer wg.Done()
    
    			<-waitingCh
    			target.Done()
    		}()
    	}
    	defer wg.Wait()
    
    	now := time.Now()
    	t.Logf("Wait starting, N=%d, grace: %s, at: %s", n, grace, now)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 21 14:08:00 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top