1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-23 00:25:43 +00:00
go-mtree/vendor/golang.org/x/sys/windows/race.go
Vincent Batts 47b137db03
go: update deps, and vendored sources
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2022-04-03 22:05:18 -04:00

31 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)
}