...
Source file
src/runtime/sys_openbsd1.go
Documentation: runtime
1
2
3
4
5
6
7 package runtime
8
9 import (
10 "internal/abi"
11 "unsafe"
12 )
13
14
15
16 func thrsleep(ident uintptr, clock_id int32, tsp *timespec, lock uintptr, abort *uint32) int32 {
17 ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(thrsleep_trampoline)), unsafe.Pointer(&ident))
18 KeepAlive(tsp)
19 KeepAlive(abort)
20 return ret
21 }
22 func thrsleep_trampoline()
23
24
25
26 func thrwakeup(ident uintptr, n int32) int32 {
27 return libcCall(unsafe.Pointer(abi.FuncPCABI0(thrwakeup_trampoline)), unsafe.Pointer(&ident))
28 }
29 func thrwakeup_trampoline()
30
31
32 func osyield() {
33 libcCall(unsafe.Pointer(abi.FuncPCABI0(sched_yield_trampoline)), unsafe.Pointer(nil))
34 }
35 func sched_yield_trampoline()
36
37
38 func osyield_no_g() {
39 asmcgocall_no_g(unsafe.Pointer(abi.FuncPCABI0(sched_yield_trampoline)), unsafe.Pointer(nil))
40 }
41
42
43
44
45
46
47
View as plain text