...
Source file
src/runtime/sys_openbsd.go
Documentation: runtime
1
2
3
4
5
6
7
8 package runtime
9
10 import "unsafe"
11
12
13
14
15
16
17 func pthread_attr_init(attr *pthreadattr) int32 {
18 ret := libcCall(unsafe.Pointer(funcPC(pthread_attr_init_trampoline)), unsafe.Pointer(&attr))
19 KeepAlive(attr)
20 return ret
21 }
22 func pthread_attr_init_trampoline()
23
24
25
26 func pthread_attr_destroy(attr *pthreadattr) int32 {
27 ret := libcCall(unsafe.Pointer(funcPC(pthread_attr_destroy_trampoline)), unsafe.Pointer(&attr))
28 KeepAlive(attr)
29 return ret
30 }
31 func pthread_attr_destroy_trampoline()
32
33
34
35 func pthread_attr_getstacksize(attr *pthreadattr, size *uintptr) int32 {
36 ret := libcCall(unsafe.Pointer(funcPC(pthread_attr_getstacksize_trampoline)), unsafe.Pointer(&attr))
37 KeepAlive(attr)
38 KeepAlive(size)
39 return ret
40 }
41 func pthread_attr_getstacksize_trampoline()
42
43
44
45 func pthread_attr_setdetachstate(attr *pthreadattr, state int) int32 {
46 ret := libcCall(unsafe.Pointer(funcPC(pthread_attr_setdetachstate_trampoline)), unsafe.Pointer(&attr))
47 KeepAlive(attr)
48 return ret
49 }
50 func pthread_attr_setdetachstate_trampoline()
51
52
53
54 func pthread_create(attr *pthreadattr, start uintptr, arg unsafe.Pointer) int32 {
55 ret := libcCall(unsafe.Pointer(funcPC(pthread_create_trampoline)), unsafe.Pointer(&attr))
56 KeepAlive(attr)
57 KeepAlive(arg)
58 return ret
59 }
60 func pthread_create_trampoline()
61
62
63
64
65
66
67
68
69
70
71
72
73
74
View as plain text