Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/runtime/sys_openbsd1.go

    // license that can be found in the LICENSE file.
    
    //go:build openbsd && !mips64
    
    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    //go:nosplit
    //go:cgo_unsafe_args
    func thrsleep(ident uintptr, clock_id int32, tsp *timespec, lock uintptr, abort *uint32) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(thrsleep_trampoline)), unsafe.Pointer(&ident))
    	KeepAlive(tsp)
    	KeepAlive(abort)
    	return ret
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 30 03:11:18 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_syscall1.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build openbsd && mips64
    
    package runtime
    
    //go:noescape
    func thrsleep(ident uintptr, clock_id int32, tsp *timespec, lock uintptr, abort *uint32) int32
    
    //go:noescape
    func thrwakeup(ident uintptr, n int32) int32
    
    func osyield()
    
    //go:nosplit
    func osyield_no_g() {
    	osyield()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 441 bytes
    - Viewed (0)
  3. src/runtime/os_openbsd.go

    		//
    		// From OpenBSD's __thrsleep(2) manual:
    		// "The abort argument, if not NULL, points to an int that will
    		// be examined [...] immediately before blocking. If that int
    		// is non-zero then __thrsleep() will immediately return EINTR
    		// without blocking."
    		ret := thrsleep(uintptr(unsafe.Pointer(&gp.m.waitsemacount)), _CLOCK_MONOTONIC, tsp, 0, &gp.m.waitsemacount)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top