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:
Matthew Dempsky 2015-10-21 18:36:05 -07:00
parent d42cc10283
commit ec9aae772c
16 changed files with 70 additions and 64 deletions

View file

@ -6,7 +6,9 @@ package runtime
import "unsafe"
type mOS struct{}
type mOS struct {
waitsema uint32 // semaphore for parking on locks
}
func bsdthread_create(stk, arg unsafe.Pointer, fn uintptr) int32
func bsdthread_register() int32