mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
d42cc10283
commit
ec9aae772c
16 changed files with 70 additions and 64 deletions
|
|
@ -6,7 +6,9 @@ package runtime
|
|||
|
||||
import "unsafe"
|
||||
|
||||
type mOS struct{}
|
||||
type mOS struct {
|
||||
waitsemacount uint32
|
||||
}
|
||||
|
||||
//go:noescape
|
||||
func setitimer(mode int32, new, old *itimerval)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue