...
Source file
src/runtime/sys_openbsd.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
17
18
19 func pthread_attr_init(attr *pthreadattr) int32 {
20 ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_init_trampoline)), unsafe.Pointer(&attr))
21 KeepAlive(attr)
22 return ret
23 }
24 func pthread_attr_init_trampoline()
25
26
27
28 func pthread_attr_destroy(attr *pthreadattr) int32 {
29 ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_destroy_trampoline)), unsafe.Pointer(&attr))
30 KeepAlive(attr)
31 return ret
32 }
33 func pthread_attr_destroy_trampoline()
34
35
36
37 func pthread_attr_getstacksize(attr *pthreadattr, size *uintptr) int32 {
38 ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_getstacksize_trampoline)), unsafe.Pointer(&attr))
39 KeepAlive(attr)
40 KeepAlive(size)
41 return ret
42 }
43 func pthread_attr_getstacksize_trampoline()
44
45
46
47 func pthread_attr_setdetachstate(attr *pthreadattr, state int) int32 {
48 ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_attr_setdetachstate_trampoline)), unsafe.Pointer(&attr))
49 KeepAlive(attr)
50 return ret
51 }
52 func pthread_attr_setdetachstate_trampoline()
53
54
55
56 func pthread_create(attr *pthreadattr, start uintptr, arg unsafe.Pointer) int32 {
57 ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(pthread_create_trampoline)), unsafe.Pointer(&attr))
58 KeepAlive(attr)
59 KeepAlive(arg)
60 return ret
61 }
62 func pthread_create_trampoline()
63
64
65
66
67
68
69
70
71
72
73
74
75
76
View as plain text