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