mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
Change-Id: I71b9023fcb6c9860ea35ba0d2cf77a6eed5176b9 Reviewed-on: https://go-review.googlesource.com/c/sys/+/357329 Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: David Crawshaw <crawshaw@golang.org> Trust: Jason A. Donenfeld <Jason@zx2c4.com> Trust: David Crawshaw <crawshaw@golang.org> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org>
32 lines
614 B
Go
32 lines
614 B
Go
// Copyright 2012 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build windows && race
|
|
// +build windows,race
|
|
|
|
package windows
|
|
|
|
import (
|
|
"runtime"
|
|
"unsafe"
|
|
)
|
|
|
|
const raceenabled = true
|
|
|
|
func raceAcquire(addr unsafe.Pointer) {
|
|
runtime.RaceAcquire(addr)
|
|
}
|
|
|
|
func raceReleaseMerge(addr unsafe.Pointer) {
|
|
runtime.RaceReleaseMerge(addr)
|
|
}
|
|
|
|
func raceReadRange(addr unsafe.Pointer, len int) {
|
|
runtime.RaceReadRange(addr, len)
|
|
}
|
|
|
|
func raceWriteRange(addr unsafe.Pointer, len int) {
|
|
runtime.RaceWriteRange(addr, len)
|
|
}
|