diff options
author | Joel Sing <joel@sing.id.au> | 2020-08-25 01:29:02 +1000 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2021-01-21 18:54:12 +0000 |
commit | 3d40895e36e5f16654fa6b75f7fdf59edb18d2e0 (patch) | |
tree | 98684203f0354f2dd30f7d170fb71d7a03583fd5 /src/runtime/defs_openbsd_arm64.go | |
parent | d95ca9138026cbe40e0857d76a81a16d03230871 (diff) | |
download | go-3d40895e36e5f16654fa6b75f7fdf59edb18d2e0.tar.gz go-3d40895e36e5f16654fa6b75f7fdf59edb18d2e0.zip |
runtime: switch openbsd/arm64 to pthreads
This switches openbsd/arm64 to thread creation via pthreads, rather than doing
direct system calls.
Update #36435
Change-Id: I7cf60fa954f92628e05f15d2732833a2fbdccdb9
Reviewed-on: https://go-review.googlesource.com/c/go/+/250182
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/runtime/defs_openbsd_arm64.go')
-rw-r--r-- | src/runtime/defs_openbsd_arm64.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/defs_openbsd_arm64.go b/src/runtime/defs_openbsd_arm64.go index 628f4bc5a5..63ea8dfecc 100644 --- a/src/runtime/defs_openbsd_arm64.go +++ b/src/runtime/defs_openbsd_arm64.go @@ -31,6 +31,8 @@ const ( _SA_RESTART = 0x2 _SA_ONSTACK = 0x1 + _PTHREAD_CREATE_DETACHED = 0x1 + _SIGHUP = 0x1 _SIGINT = 0x2 _SIGQUIT = 0x3 @@ -157,3 +159,10 @@ type keventt struct { data int64 udata *byte } + +type pthread uintptr +type pthreadattr uintptr +type pthreadcond uintptr +type pthreadcondattr uintptr +type pthreadmutex uintptr +type pthreadmutexattr uintptr |