Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for poll_oneoff (0.49 sec)

  1. src/runtime/netpoll_wasip1.go

    //
    // WASI preview 1 includes a poll_oneoff host function that behaves similarly
    // to poll(2) on Linux. Like poll(2), poll_oneoff is level triggered. It
    // accepts one or more subscriptions to FD read or write events.
    //
    // Major differences to poll(2):
    // - the events are not written to the input entries (like pollfd.revents), and
    //   instead are appended to a separate events buffer. poll_oneoff writes zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/runtime/os_wasip1.go

    }
    
    func (u *subscriptionUnion) subscriptionFdReadwrite() *subscriptionFdReadwrite {
    	return (*subscriptionFdReadwrite)(unsafe.Pointer(&u[1]))
    }
    
    //go:wasmimport wasi_snapshot_preview1 poll_oneoff
    //go:noescape
    func poll_oneoff(in, out unsafe.Pointer, nsubscriptions size, nevents unsafe.Pointer) errno
    
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	iov := iovec{
    		buf:    uintptr32(uintptr(p)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7K bytes
    - Viewed (0)
  3. src/time/sys_unix.go

    package time
    
    import (
    	"errors"
    	"runtime"
    	"syscall"
    )
    
    // for testing: whatever interrupts a sleep
    func interrupt() {
    	// There is no mechanism in wasi to interrupt the call to poll_oneoff
    	// used to implement runtime.usleep so this function does nothing, which
    	// somewhat defeats the purpose of TestSleep but we are still better off
    	// validating that time elapses when the process calls time.Sleep than
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:10 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top