- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 967 for Decref (0.11 sec)
-
src/internal/poll/sockopt.go
if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.SetsockoptInt(fd.Sysfd, level, name, arg) } // SetsockoptInet4Addr wraps the setsockopt network call with an IPv4 address. func (fd *FD) SetsockoptInet4Addr(level, name int, arg [4]byte) error { if err := fd.incref(); err != nil { return err } defer fd.decref()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 13:44:49 UTC 2023 - 1.3K bytes - Viewed (0) -
src/internal/poll/export_test.go
package poll var Consume = consume type XFDMutex struct { fdMutex } func (mu *XFDMutex) Incref() bool { return mu.incref() } func (mu *XFDMutex) IncrefAndClose() bool { return mu.increfAndClose() } func (mu *XFDMutex) Decref() bool { return mu.decref() } func (mu *XFDMutex) RWLock(read bool) bool { return mu.rwlock(read) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 714 bytes - Viewed (0) -
src/internal/poll/fd_posix.go
// Shutdown wraps syscall.Shutdown. func (fd *FD) Shutdown(how int) error { if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.Shutdown(fd.Sysfd, how) } // Fchown wraps syscall.Fchown. func (fd *FD) Fchown(uid, gid int) error { if err := fd.incref(); err != nil { return err } defer fd.decref() return ignoringEINTR(func() error { return syscall.Fchown(fd.Sysfd, uid, gid) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:17 UTC 2023 - 1.9K bytes - Viewed (0) -
src/os/file_mutex_plan9.go
} } return err } // decref removes a reference to the file. If this is the last // remaining reference, and the file has been marked to be closed, // then actually close it. func (file *file) decref() error { if file.fdmu.Decref() { return file.destroy() } return nil } // readLock adds a reference to the file and locks it for reading. // It returns an error if the file is already closed.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 1.8K bytes - Viewed (0) -
src/internal/poll/fd_mutex_test.go
ensurePanics(func() { mu.RWUnlock(false) }) ensurePanics(func() { mu.Incref(); mu.Decref(); mu.Decref() }) ensurePanics(func() { mu.RWLock(true); mu.RWUnlock(true); mu.RWUnlock(true) }) ensurePanics(func() { mu.RWLock(false); mu.RWUnlock(false); mu.RWUnlock(false) }) // ensure that it's still not broken mu.Incref() mu.Decref() mu.RWLock(true) mu.RWUnlock(true) mu.RWLock(false) mu.RWUnlock(false) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 4K bytes - Viewed (0) -
src/internal/poll/fd_unixjs.go
func (fd *FD) Fchdir() error { if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.Fchdir(fd.Sysfd) } // ReadDirent wraps syscall.ReadDirent. // We treat this like an ordinary system call rather than a call // that tries to fill the buffer. func (fd *FD) ReadDirent(buf []byte) (int, error) { if err := fd.incref(); err != nil { return 0, err } defer fd.decref()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:12:41 UTC 2023 - 2K bytes - Viewed (0) -
src/internal/poll/file_plan9.go
// FDMutex is an exported fdMutex, only for Plan 9. type FDMutex struct { fdmu fdMutex } func (fdmu *FDMutex) Incref() bool { return fdmu.fdmu.incref() } func (fdmu *FDMutex) Decref() bool { return fdmu.fdmu.decref() } func (fdmu *FDMutex) IncrefAndClose() bool { return fdmu.fdmu.increfAndClose() } func (fdmu *FDMutex) ReadLock() bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 972 bytes - Viewed (0) -
src/internal/poll/fd_unix.go
func (fd *FD) Fchmod(mode uint32) error { if err := fd.incref(); err != nil { return err } defer fd.decref() return ignoringEINTR(func() error { return syscall.Fchmod(fd.Sysfd, mode) }) } // Fstat wraps syscall.Fstat func (fd *FD) Fstat(s *syscall.Stat_t) error { if err := fd.incref(); err != nil { return err } defer fd.decref() return ignoringEINTR(func() error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 04:09:44 UTC 2024 - 17.9K bytes - Viewed (0) -
src/os/file_plan9.go
// At this point we should cancel any pending I/O. // How do we do that on Plan 9? err := file.decref() // no need for a finalizer anymore runtime.SetFinalizer(file, nil) return err } // destroy actually closes the descriptor. This is called when // there are no remaining references, by the decref, readUnlock, // and writeUnlock methods. func (file *file) destroy() error { var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:35:30 UTC 2024 - 16K bytes - Viewed (0) -
src/internal/poll/sockopt_windows.go
func (fd *FD) WSAIoctl(iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *syscall.Overlapped, completionRoutine uintptr) error { if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.WSAIoctl(fd.Sysfd, iocc, inbuf, cbif, outbuf, cbob, cbbr, overlapped, completionRoutine)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 30 19:09:46 UTC 2023 - 586 bytes - Viewed (0)