Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for waitRead (0.14 sec)

  1. src/internal/poll/fd_unix.go

    		p = p[:maxRW]
    	}
    	for {
    		n, err := ignoringEINTRIO(syscall.Read, fd.Sysfd, p)
    		if err != nil {
    			n = 0
    			if err == syscall.EAGAIN && fd.pd.pollable() {
    				if err = fd.pd.waitRead(fd.isFile); err == nil {
    					continue
    				}
    			}
    		}
    		err = fd.eofError(n, err)
    		return n, err
    	}
    }
    
    // Pread wraps the pread system call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/internal/poll/fd_poll_runtime.go

    	if pd.runtimeCtx == 0 {
    		return errors.New("waiting for unsupported file type")
    	}
    	res := runtime_pollWait(pd.runtimeCtx, mode)
    	return convertErr(res, isFile)
    }
    
    func (pd *pollDesc) waitRead(isFile bool) error {
    	return pd.wait('r', isFile)
    }
    
    func (pd *pollDesc) waitWrite(isFile bool) error {
    	return pd.wait('w', isFile)
    }
    
    func (pd *pollDesc) waitCanceled(mode int) {
    	if pd.runtimeCtx == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. src/internal/poll/fd_wasip1.go

    		return 0, err
    	}
    	defer fd.decref()
    	for {
    		n, err := syscall.ReadDir(fd.Sysfd, buf, cookie)
    		if err != nil {
    			n = 0
    			if err == syscall.EAGAIN && fd.pd.pollable() {
    				if err = fd.pd.waitRead(fd.isFile); err == nil {
    					continue
    				}
    			}
    		}
    		// Do not call eofError; caller does not expect to see io.EOF.
    		return n, err
    	}
    }
    
    func (fd *FD) ReadDirent(buf []byte) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint.go

    	"istio.io/istio/pkg/config/protocol"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/util/sets"
    )
    
    var (
    	revision      = ""
    	waitReady     bool
    	allNamespaces bool
    
    	deleteAll bool
    
    	trafficType       = ""
    	validTrafficTypes = sets.New(constants.ServiceTraffic, constants.WorkloadTraffic, constants.AllTraffic, constants.NoTraffic)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

              return false;
            } else {
              long now = System.nanoTime();
              TimeUnit.NANOSECONDS.timedWait(lock, nanos);
              nanos -= System.nanoTime() - now; // subtract the actual time we waited
            }
          }
        }
      }
    
      /**
       * Checks if the executor has been shut down and increments the running task count.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/DirectExecutorService.java

              return false;
            } else {
              long now = System.nanoTime();
              TimeUnit.NANOSECONDS.timedWait(lock, nanos);
              nanos -= System.nanoTime() - now; // subtract the actual time we waited
            }
          }
        }
      }
    
      /**
       * Checks if the executor has been shut down and increments the running task count.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/work/AsyncWorkTracker.java

         * the asynchronous work, a {@link org.gradle.internal.exceptions.MultiCauseException} will be thrown with any exceptions
         * thrown.
         *
         * @param workCompletions - The items of work that should be waited on
         * @param lockRetention - How project locks should be treated while waiting on work
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:22:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. cluster/gce/windows/k8s-node-setup.psm1

    function WaitFor_KubeletAndKubeProxyReady {
      $waited = 0
      $timeout = 10
      while (((Get-Service kube-proxy).Status -ne 'Running' -or (Get-Service kubelet).Status -ne 'Running') -and $waited -lt $timeout) {
        Start-Sleep 1
        $waited++
      }
    
      # Timeout occurred
      if ($waited -ge $timeout) {
        Log-Output "$(Get-Service kube* | Out-String)"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 21:13:22 UTC 2024
    - 88.3K bytes
    - Viewed (0)
  9. src/os/exec_unix.go

    	// may wait on the wrong process if the PID is reused after the
    	// completes its wait.
    	//
    	// Checking for statusDone here would not be a complete fix, as the PID
    	// could still be waited on and reused prior to blockUntilWaitable.
    	switch p.pidStatus() {
    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    
    	// If we can block until Wait4 will succeed immediately, do so.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/sync/waitgroup.go

    // positive delta that start when the counter is greater than zero, may happen
    // at any time.
    // Typically this means the calls to Add should execute before the statement
    // creating the goroutine or other event to be waited for.
    // If a WaitGroup is reused to wait for several independent sets of events,
    // new Add calls must happen after all previous Wait calls have returned.
    // See the WaitGroup example.
    func (wg *WaitGroup) Add(delta int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top