Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,677 for waits (0.04 sec)

  1. src/runtime/rwmutex_test.go

    	var cunlock atomic.Bool
    	cdone := make(chan bool)
    	for i := 0; i < numReaders; i++ {
    		go parallelReader(&m, clocked, &cunlock, cdone)
    	}
    	// Wait for all parallel RLock()s to succeed.
    	for i := 0; i < numReaders; i++ {
    		<-clocked
    	}
    	cunlock.Store(true)
    	// Wait for the goroutines to finish.
    	for i := 0; i < numReaders; i++ {
    		<-cdone
    	}
    }
    
    func TestParallelRWMutexReaders(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 22:00:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. src/internal/singleflight/singleflight.go

    	Err    error
    	Shared bool
    }
    
    // Do executes and returns the results of the given function, making
    // sure that only one execution is in-flight for a given key at a
    // time. If a duplicate comes in, the duplicate caller waits for the
    // original to complete and receives the same results.
    // The return value shared indicates whether v was given to multiple callers.
    func (g *Group) Do(key string, fn func() (any, error)) (v any, err error, shared bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 20:49:56 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. pkg/kube/multicluster/cluster.go

    	Update
    )
    
    func (a ACTION) String() string {
    	switch a {
    	case Add:
    		return "Add"
    	case Update:
    		return "Update"
    	}
    	return "Unknown"
    }
    
    // Run starts the cluster's informers and waits for caches to sync. Once caches are synced, we mark the cluster synced.
    // This should be called after each of the handlers have registered informers, and should be run in a goroutine.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

             */
            void releaseAll();
    
            /**
             * Waits for the expected number of concurrent requests to be received.
             */
            void waitForAllPendingCalls();
    
            /**
             * Waits for the expected number of concurrent requests to be received or until the given {@link FailureTracker} provides a
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. istioctl/pkg/xds/client.go

    	defaultExpirationSeconds = 60 * 60
    )
    
    // Audience to create tokens for
    var tokenAudiences = []string{"istio-ca"}
    
    // GetXdsResponse opens a gRPC connection to opts.xds and waits for a single response
    func GetXdsResponse(dr *discovery.DiscoveryRequest, ns string, serviceAccount string, opts clioptions.CentralControlPlaneOptions,
    	grpcOpts []grpc.DialOption,
    ) (*discovery.DiscoveryResponse, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. cni/pkg/util/pluginutil.go

    	"istio.io/istio/pkg/log"
    )
    
    type Watcher struct {
    	watcher *fsnotify.Watcher
    	Events  chan struct{}
    	Errors  chan error
    }
    
    // Waits until a file is modified (returns nil), the context is cancelled (returns context error), or returns error
    func (w *Watcher) Wait(ctx context.Context) error {
    	select {
    	case <-w.Events:
    		return nil
    	case err := <-w.Errors:
    		return err
    	case <-ctx.Done():
    		return ctx.Err()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. 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)
  8. cluster/images/etcd/migrate/migrate_server.go

    func NewEtcdMigrateServer(cfg *EtcdMigrateCfg, client EtcdMigrateClient) *EtcdMigrateServer {
    	return &EtcdMigrateServer{cfg: cfg, client: client}
    }
    
    // Start starts an etcd server as a separate process, waits until it has started, and returns a exec.Cmd.
    // TODO: Add support for listening to client via TLS.
    func (r *EtcdMigrateServer) Start(version *EtcdVersion) error {
    	etcdCmd := exec.Command(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 30 16:29:59 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  9. src/runtime/os_darwin.go

    // handler: the sigsend function. The signal handler code does not require
    // all the features of notes: it does not need to do a timed wait.
    // This is a separate implementation of notes, based on a pipe, that does
    // not support timed waits but is async-signal-safe.
    func sigNoteSetup(*note) {
    	if sigNoteRead != 0 || sigNoteWrite != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/volume_manager.go

    )
    
    const (
    	// reconcilerLoopSleepPeriod is the amount of time the reconciler loop waits
    	// between successive executions
    	reconcilerLoopSleepPeriod = 100 * time.Millisecond
    
    	// desiredStateOfWorldPopulatorLoopSleepPeriod is the amount of time the
    	// DesiredStateOfWorldPopulator loop waits between successive executions
    	desiredStateOfWorldPopulatorLoopSleepPeriod = 100 * time.Millisecond
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top