source: code/trunk/vendor/golang.org/x/sys/windows/race.go@ 67

Last change on this file since 67 was 67, checked in by Izuru Yakumo, 23 months ago

Use vendored modules

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 614 bytes
Line 
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows && race
6// +build windows,race
7
8package windows
9
10import (
11 "runtime"
12 "unsafe"
13)
14
15const raceenabled = true
16
17func raceAcquire(addr unsafe.Pointer) {
18 runtime.RaceAcquire(addr)
19}
20
21func raceReleaseMerge(addr unsafe.Pointer) {
22 runtime.RaceReleaseMerge(addr)
23}
24
25func raceReadRange(addr unsafe.Pointer, len int) {
26 runtime.RaceReadRange(addr, len)
27}
28
29func raceWriteRange(addr unsafe.Pointer, len int) {
30 runtime.RaceWriteRange(addr, len)
31}
Note: See TracBrowser for help on using the repository browser.