Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WriteOnce (0.1 sec)

  1. src/internal/poll/fd_unix.go

    // WaitWrite waits until data can be written to fd.
    func (fd *FD) WaitWrite() error {
    	return fd.pd.waitWrite(fd.isFile)
    }
    
    // WriteOnce is for testing only. It makes a single write call.
    func (fd *FD) WriteOnce(p []byte) (int, error) {
    	if err := fd.writeLock(); err != nil {
    		return 0, err
    	}
    	defer fd.writeUnlock()
    	return ignoringEINTRIO(syscall.Write, fd.Sysfd, p)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top