Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for errClosing (0.09 sec)

  1. src/internal/poll/fd_poll_runtime.go

    	pollErrTimeout     = 2
    	pollErrNotPollable = 3
    )
    
    func convertErr(res int, isFile bool) error {
    	switch res {
    	case pollNoError:
    		return nil
    	case pollErrClosing:
    		return errClosing(isFile)
    	case pollErrTimeout:
    		return ErrDeadlineExceeded
    	case pollErrNotPollable:
    		return ErrNotPollable
    	}
    	println("unreachable: ", res)
    	panic("unreachable")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/internal/poll/fd_plan9.go

    		fd.Destroy()
    	}
    	return nil
    }
    
    // Close handles the locking for closing an FD. The real operation
    // is in the net package.
    func (fd *FD) Close() error {
    	if !fd.fdmu.increfAndClose() {
    		return errClosing(fd.isFile)
    	}
    	return nil
    }
    
    // Read implements io.Reader.
    func (fd *FD) Read(fn func([]byte) (int, error), b []byte) (int, error) {
    	if err := fd.readLock(); err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/internal/poll/fd_unix.go

    	if !fd.fdmu.increfAndClose() {
    		return errClosing(fd.isFile)
    	}
    
    	// Unblock any I/O.  Once it all unblocks and returns,
    	// so that it cannot be referring to fd.sysfd anymore,
    	// the final decref will close fd.sysfd. This should happen
    	// fairly quickly, since all the I/O is non-blocking, and any
    	// attempts to block in the pollDesc will return errClosing(fd.isFile).
    	fd.pd.evict()
    
    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