Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 871 for waits (0.23 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

                    } finally {
                        releaseOwnership();
                    }
                } finally {
                    stateLock.unlock();
                }
            }
        }
    
        /**
         * Waits until the current thread can take ownership.
         * Must be called while holding the lock.
         */
        private void takeOwnership() {
            while (owner != null && owner != Thread.currentThread()) {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

      }
    
      /**
       * Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application
       * is complete. It does so by using daemon threads and adding a shutdown hook to wait for their
       * completion.
       *
       * <p>This method waits 120 seconds before continuing with JVM termination, even if the executor
       * has not finished its work.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 39K bytes
    - Viewed (0)
  3. src/cmd/dist/util.go

    	bgwork <- func() {
    		defer wg.Done()
    		run(dir, CheckExit|ShowOutput|Background, cmd...)
    	}
    }
    
    // bgwait waits for pending bgruns to finish.
    // bgwait must be called from only a single goroutine at a time.
    func bgwait(wg *sync.WaitGroup) {
    	done := make(chan struct{})
    	go func() {
    		wg.Wait()
    		close(done)
    	}()
    	select {
    	case <-done:
    	case <-dying:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. pkg/adsc/adsc.go

    			}
    			continue
    		case <-t.C:
    			return fmt.Errorf("timeout, still waiting for update for %v", want)
    		}
    	}
    }
    
    // Wait for an updates for all the specified types
    // If updates is empty, this will wait for any update
    func (a *ADSC) Wait(to time.Duration, updates ...string) ([]string, error) {
    	t := time.NewTimer(to)
    	want := sets.New[string](updates...)
    	got := make([]string, 0, len(updates))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/README

    	The '->' token (like in 'ls -l' output on Unix) is required.
    
    wait 
    	wait for completion of background commands
    
    	Waits for all background commands to complete.
    	The output (and any error) from each command is printed to
    	the log in the order in which the commands were started.
    	After the call to 'wait', the script's stdout and stderr
    	buffers contain the concatenation of the background
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/vcweb/vcweb.go

    // with its current contents.
    //
    // If the script completed successfully, HandleScript invokes f on the handler
    // with the script's result still read-locked, and waits for it to return. (That
    // ensures that cache invalidation does not race with an in-flight handler.)
    //
    // Otherwise, HandleScript returns the (cached) error from executing the script.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. src/crypto/tls/tls.go

    	}
    	c.handshakeFn = c.clientHandshake
    	return c
    }
    
    // A listener implements a network listener (net.Listener) for TLS connections.
    type listener struct {
    	net.Listener
    	config *Config
    }
    
    // Accept waits for and returns the next incoming TLS connection.
    // The returned connection is of type *Conn.
    func (l *listener) Accept() (net.Conn, error) {
    	c, err := l.Listener.Accept()
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    	_ = wait.PollImmediateUntil(1*time.Minute, func() (bool, error) {
    		c.queue.Add(keyFn())
    		return false, nil
    	}, ctx.Done())
    
    	// wait until we're told to stop
    	<-ctx.Done()
    }
    
    func (c *Controller) runWorker() {
    	// hot loop until we're told to stop.  processNextWorkItem will automatically wait until there's work
    	// available, so we don't worry about secondary waits
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. pilot/pkg/leaderelection/k8sleaderelection/leaderelection.go

    	// wait to force acquire leadership. This is measured against time of
    	// last observed ack.
    	//
    	// A client needs to wait a full LeaseDuration without observing a change to
    	// the record before it can attempt to take over. When all clients are
    	// shutdown and a new set of clients are started with different names against
    	// the same leader record, they must wait the full LeaseDuration before
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  10. internal/ringbuffer/ring_buffer.go

    		r.writeCond.Broadcast()
    	}
    
    	// Unlock the mutex so readers/writers can finish.
    	r.mu.Unlock()
    	r.wg.Wait()
    	r.mu.Lock()
    	r.r = 0
    	r.w = 0
    	r.err = nil
    	r.isFull = false
    }
    
    // WriteCloser returns a WriteCloser that writes to the ring buffer.
    // When the returned WriteCloser is closed, it will wait for all data to be read before returning.
    func (r *RingBuffer) WriteCloser() io.WriteCloser {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top