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 return libcCall(unsafe.Pointer(funcPC(thrsleep_trampoline)), unsafe.Pointer(&ident))
16 }
17 func thrsleep_trampoline()
18
19
20
21 func thrwakeup(ident uintptr, n int32) int32 {
22 return libcCall(unsafe.Pointer(funcPC(thrwakeup_trampoline)), unsafe.Pointer(&ident))
23 }
24 func thrwakeup_trampoline()
25
26
27 func osyield() {
28 libcCall(unsafe.Pointer(funcPC(sched_yield_trampoline)), unsafe.Pointer(nil))
29 }
30 func sched_yield_trampoline()
31
32
33 func osyield_no_g() {
34 asmcgocall_no_g(unsafe.Pointer(funcPC(sched_yield_trampoline)), unsafe.Pointer(nil))
35 }
36
37
38
39
40
41
42
View as plain text