github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/internal/race/norace.go (about) 1 // Copyright 2015 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 !race 6 // +build !race 7 8 package race 9 10 import ( 11 "unsafe" 12 ) 13 14 const Enabled = false 15 16 func Acquire(addr unsafe.Pointer) { 17 } 18 19 func Release(addr unsafe.Pointer) { 20 } 21 22 func ReleaseMerge(addr unsafe.Pointer) { 23 } 24 25 func Disable() { 26 } 27 28 func Enable() { 29 } 30 31 func Read(addr unsafe.Pointer) { 32 } 33 34 func Write(addr unsafe.Pointer) { 35 } 36 37 func ReadRange(addr unsafe.Pointer, len int) { 38 } 39 40 func WriteRange(addr unsafe.Pointer, len int) { 41 } 42 43 func Errors() int { return 0 }