aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_openbsd.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-10-21 18:36:05 -0700
committerMatthew Dempsky <mdempsky@google.com>2015-11-13 02:58:12 +0000
commitec9aae772c6da242fd0c1ef2d71ddb5c139d8f61 (patch)
tree1b7087961870a9f27a7dc9b5dc936438a101b4d8 /src/runtime/os_openbsd.go
parentd42cc10283b611eb6799a3d46593777dc2174f34 (diff)
downloadgo-ec9aae772c6da242fd0c1ef2d71ddb5c139d8f61.tar.gz
go-ec9aae772c6da242fd0c1ef2d71ddb5c139d8f61.zip
runtime: move m's OS-specific semaphore fields into mOS
Allows removing fields that aren't relevant to a particular OS or changing their types to match the underlying OS system calls they'll be used for. Change-Id: I5cea89ee77b4e7b985bff41337e561887c3272ff Reviewed-on: https://go-review.googlesource.com/16176 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/runtime/os_openbsd.go')
-rw-r--r--src/runtime/os_openbsd.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/os_openbsd.go b/src/runtime/os_openbsd.go
index 74a838fa41..12f4cd1a24 100644
--- a/src/runtime/os_openbsd.go
+++ b/src/runtime/os_openbsd.go
@@ -4,7 +4,9 @@
package runtime
-type mOS struct{}
+type mOS struct {
+ waitsemacount uint32
+}
//go:noescape
func setitimer(mode int32, new, old *itimerval)