Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for waitRead (0.17 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_js.go

    		return errClosing(isFile)
    	}
    	if isFile { // TODO(neelance): js/wasm: Use callbacks from JS to block until the read/write finished.
    		return nil
    	}
    	return ErrDeadlineExceeded
    }
    
    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) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/internal/poll/fd_unixjs.go

    		return 0, err
    	}
    	defer fd.decref()
    	for {
    		n, err := ignoringEINTRIO(syscall.ReadDirent, fd.Sysfd, buf)
    		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
    	}
    }
    
    // Seek wraps syscall.Seek.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:41 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/internal/poll/splice_linux.go

    		n, err := splice(pipefd, sock.Sysfd, max, spliceNonblock)
    		if err == syscall.EINTR {
    			continue
    		}
    		if err != syscall.EAGAIN {
    			return n, err
    		}
    		if sock.pd.pollable() {
    			if err := sock.pd.waitRead(sock.isFile); err != nil {
    				return n, err
    			}
    		}
    	}
    }
    
    // splicePump moves all the buffered data from a pipe to a socket.
    //
    // Invariant: when entering splicePump, there are exactly inPipe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Queues.java

       *
       * @param q the blocking queue to be drained
       * @param buffer where to add the transferred elements
       * @param numElements the number of elements to be waited for
       * @param timeout how long to wait before giving up
       * @return the number of elements transferred
       * @throws InterruptedException if interrupted while waiting
       * @since 28.0
       */
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Queues.java

       *
       * @param q the blocking queue to be drained
       * @param buffer where to add the transferred elements
       * @param numElements the number of elements to be waited for
       * @param timeout how long to wait before giving up, in units of {@code unit}
       * @param unit a {@code TimeUnit} determining how to interpret the timeout parameter
       * @return the number of elements transferred
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top