Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 531 for Poll (0.05 sec)

  1. src/net/rawconn.go

    	}
    	return err
    }
    
    // PollFD returns the poll.FD of the underlying connection.
    //
    // Other packages in std that also import [internal/poll] (such as os)
    // can use a type assertion to access this extension method so that
    // they can pass the *poll.FD to functions like poll.Splice.
    //
    // PollFD is not intended for use outside the standard library.
    func (c *rawConn) PollFD() *poll.FD {
    	if !c.ok() {
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/runtime/netpoll_aix.go

    // This is based on the former libgo/runtime/netpoll_select.c implementation
    // except that it uses poll instead of select and is written in Go.
    // It's also based on Solaris implementation for the arming mechanisms
    
    //go:cgo_import_dynamic libc_poll poll "libc.a/shr_64.o"
    //go:linkname libc_poll libc_poll
    
    var libc_poll libFunc
    
    //go:nosplit
    func poll(pfds *pollfd, npfds uintptr, timeout uintptr) (int32, int32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java

      public void testPoll_empty() {
        assertNull("emptyQueue.poll() should return null", getQueue().poll());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ONE)
      public void testPoll_size1() {
        assertEquals("size1Queue.poll() should return first element", e0(), getQueue().poll());
        expectMissing(e0());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/internal/poll/export_windows_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Export guts for testing on windows.
    // Since testing imports os and os imports internal/poll,
    // the internal/poll tests can not be in package poll.
    
    package poll
    
    var (
    	LogInitFD = &logInitFD
    )
    
    func (fd *FD) IsPartOfNetpoll() bool {
    	return fd.pd.runtimeCtx != 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 04:10:13 UTC 2017
    - 431 bytes
    - Viewed (0)
  5. src/net/splice_linux_test.go

    			t.Errorf("r.N = %d, want %d", n, wantN)
    		}
    	}
    
    	// poll.Splice is expected to be called when the source is not
    	// a wrapper or the destination is TCPConn.
    	if tc.limitReadSize == 0 || tc.downNet == "tcp" {
    		// We should have called poll.Splice with the right file descriptor arguments.
    		if n > 0 && !hook.called {
    			t.Fatal("expected poll.Splice to be called")
    		}
    
    		verifySpliceFds(t, serverDown, hook, "dst")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java

      public void testPoll_empty() {
        assertNull("emptyQueue.poll() should return null", getQueue().poll());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ONE)
      public void testPoll_size1() {
        assertEquals("size1Queue.poll() should return first element", e0(), getQueue().poll());
        expectMissing(e0());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/internal/poll/export_linux_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Export guts for testing on linux.
    // Since testing imports os and os imports internal/poll,
    // the internal/poll tests can not be in package poll.
    
    package poll
    
    var (
    	GetPipe     = getPipe
    	PutPipe     = putPipe
    	NewPipe     = newPipe
    	DestroyPipe = destroyPipe
    )
    
    func GetPipeFds(p *SplicePipe) (int, int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 10 03:52:48 UTC 2021
    - 527 bytes
    - Viewed (0)
  8. src/net/main_cloexec_test.go

    package net
    
    import "internal/poll"
    
    func init() {
    	extraTestHookInstallers = append(extraTestHookInstallers, installAccept4TestHook)
    	extraTestHookUninstallers = append(extraTestHookUninstallers, uninstallAccept4TestHook)
    }
    
    var (
    	// Placeholders for saving original socket system calls.
    	origAccept4 = poll.Accept4Func
    )
    
    func installAccept4TestHook() {
    	poll.Accept4Func = sw.Accept4
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 14:38:32 UTC 2022
    - 693 bytes
    - Viewed (0)
  9. src/os/writeto_linux_test.go

    	return client, tempFile, server, data, hook
    }
    
    func hookSendFile(t *testing.T) *sendFileHook {
    	h := new(sendFileHook)
    	orig := poll.TestHookDidSendFile
    	t.Cleanup(func() {
    		poll.TestHookDidSendFile = orig
    	})
    	poll.TestHookDidSendFile = func(dstFD *poll.FD, src int, written int64, err error, handled bool) {
    		h.called = true
    		h.dstfd = dstFD.Sysfd
    		h.srcfd = src
    		h.written = written
    		h.err = err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. src/os/file_open_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm)
    
    package os
    
    import (
    	"internal/poll"
    	"syscall"
    )
    
    func open(path string, flag int, perm uint32) (int, poll.SysFile, error) {
    	fd, err := syscall.Open(path, flag, perm)
    	return fd, poll.SysFile{}, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 397 bytes
    - Viewed (0)
Back to top