Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for osyield1 (0.16 sec)

  1. src/runtime/os3_solaris.go

    	r1, err := sysvicall3Err(&libc_fcntl, uintptr(fd), uintptr(cmd), uintptr(arg))
    	return int32(r1), int32(err)
    }
    
    func osyield1()
    
    //go:nosplit
    func osyield_no_g() {
    	osyield1()
    }
    
    //go:nosplit
    func osyield() {
    	sysvicall0(&libc_sched_yield)
    }
    
    //go:linkname executablePath os.executablePath
    var executablePath string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/runtime/os2_aix.go

    	}
    
    	syscall2(&libc_kill, pid, uintptr(sig))
    }
    
    func osyield1()
    
    //go:nosplit
    func osyield_no_g() {
    	osyield1()
    }
    
    //go:nosplit
    func osyield() {
    	r, err := syscall0(&libc_sched_yield)
    	if int32(r) == -1 {
    		println("syscall osyield failed: ", hex(err))
    		throw("syscall osyield")
    	}
    }
    
    //go:nosplit
    func sysconf(name int32) uintptr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd_syscall1.go

    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)
  4. src/runtime/export_windows_test.go

    // license that can be found in the LICENSE file.
    
    // Export guts for testing.
    
    package runtime
    
    import "unsafe"
    
    const MaxArgs = maxArgs
    
    var (
    	OsYield                 = osyield
    	TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
    )
    
    func NumberOfProcessors() int32 {
    	var info systeminfo
    	stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:25:00 UTC 2024
    - 759 bytes
    - Viewed (0)
  5. src/runtime/os_wasm.go

    	gp.sig = _SIGSEGV
    	panicmem()
    }
    
    // func exitThread(wait *uint32)
    // FIXME: wasm doesn't have atomic yet
    func exitThread(wait *atomic.Uint32)
    
    type mOS struct{}
    
    func osyield()
    
    //go:nosplit
    func osyield_no_g() {
    	osyield()
    }
    
    type sigset struct{}
    
    // Called to initialize a new m (including the bootstrap m).
    // Called on the parent thread (main thread in case of bootstrap), can allocate memory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/runtime/sys_openbsd1.go

    //go:nosplit
    //go:cgo_unsafe_args
    func thrwakeup(ident uintptr, n int32) int32 {
    	return libcCall(unsafe.Pointer(abi.FuncPCABI0(thrwakeup_trampoline)), unsafe.Pointer(&ident))
    }
    func thrwakeup_trampoline()
    
    //go:nosplit
    func osyield() {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(sched_yield_trampoline)), unsafe.Pointer(nil))
    }
    func sched_yield_trampoline()
    
    //go:nosplit
    func osyield_no_g() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 30 03:11:18 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  7. src/runtime/cpuprof.go

    func (p *cpuProfile) add(tagPtr *unsafe.Pointer, stk []uintptr) {
    	// Simple cas-lock to coordinate with setcpuprofilerate.
    	for !prof.signalLock.CompareAndSwap(0, 1) {
    		// TODO: Is it safe to osyield here? https://go.dev/issue/52672
    		osyield()
    	}
    
    	if prof.hz.Load() != 0 { // implies cpuprof.log != nil
    		if p.numExtra > 0 || p.lostExtra > 0 || p.lostAtomic > 0 {
    			p.addExtra()
    		}
    		hdr := [1]uint64{1}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. src/runtime/netpoll_stub.go

    		netpollBroken = false
    		unlock(&netpollBrokenLock)
    
    		notetsleep(&netpollNote, delay)
    		unlock(&netpollStubLock)
    		// Guard against starvation in case the lock is contended
    		// (eg when running TestNetpollBreak).
    		osyield()
    	}
    	return gList{}, 0
    }
    
    func netpollinited() bool {
    	return netpollInited.Load() != 0
    }
    
    func netpollAnyWaiters() bool {
    	return false
    }
    
    func netpollAdjustWaiters(delta int32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. src/runtime/os_dragonfly.go

    func lwp_kill(pid, tid int32, sig int)
    
    //go:noescape
    func sys_umtx_sleep(addr *uint32, val, timeout int32) int32
    
    //go:noescape
    func sys_umtx_wakeup(addr *uint32, val int32) int32
    
    func osyield()
    
    //go:nosplit
    func osyield_no_g() {
    	osyield()
    }
    
    func kqueue() int32
    
    //go:noescape
    func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
    
    func pipe2(flags int32) (r, w int32, errno int32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. src/runtime/tracecpu.go

    	}
    	if gp != nil {
    		hdr[1] = gp.goid
    	}
    	hdr[2] = uint64(mp.procid)
    
    	// Allow only one writer at a time
    	for !trace.signalLock.CompareAndSwap(0, 1) {
    		// TODO: Is it safe to osyield here? https://go.dev/issue/52672
    		osyield()
    	}
    
    	if log := trace.cpuLogWrite[gen%2].Load(); log != nil {
    		// Note: we don't pass a tag pointer here (how should profiling tags
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top