diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-17 20:23:14 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-17 20:23:14 +0200 |
commit | 1332a6ec0a00b2475bc2b7b35b4c61425361d6b6 (patch) | |
tree | ff9ee93ea4a3bafc99d049d4f0c7b9f199ff0fec /vendor/golang.org/x/sys/unix/race.go | |
parent | 9e6c687fca71103fd7550e25c471b9f805337b09 (diff) | |
download | git-bug-1332a6ec0a00b2475bc2b7b35b4c61425361d6b6.tar.gz |
ls: add some colors
Diffstat (limited to 'vendor/golang.org/x/sys/unix/race.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/race.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/race.go b/vendor/golang.org/x/sys/unix/race.go new file mode 100644 index 00000000..61712b51 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/race.go @@ -0,0 +1,30 @@ +// 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. + +// +build darwin,race linux,race freebsd,race + +package unix + +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) +} |