Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for waitRead (0.74 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/jit/xla_tensor.cc

      if (std::find(streams_defined_on_.begin(), streams_defined_on_.end(),
                    stream) != streams_defined_on_.end()) {
        // stream is in streams_defined_on_; it doesn't need to be waited on.
        return;
      }
    
      stream->WaitFor(definition_event_.get()).IgnoreError();
      streams_defined_on_.push_back(stream);
    }
    
    void XlaTensor::ResetDefinitionEvent(std::shared_ptr<se::Event> event,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/wait/timer.go

    // expected to be safe for calls from multiple goroutines.
    type Timer interface {
    	// C returns a channel that will receive a struct{} each time the timer fires.
    	// The channel should not be waited on after Stop() is invoked. It is allowed
    	// to cache the returned value of C() for the lifetime of the Timer.
    	C() <-chan time.Time
    	// Next is invoked by wait functions to signal timers that the next interval
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top