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