github.com/lrita/cache@v1.0.1/race/norace.go (about)

     1  // +build !race
     2  
     3  package race
     4  
     5  import "unsafe"
     6  
     7  // Enabled represents the -race is enabled or not.
     8  const Enabled = false
     9  
    10  func Acquire(addr unsafe.Pointer)             {}
    11  func Release(addr unsafe.Pointer)             {}
    12  func ReleaseMerge(addr unsafe.Pointer)        {}
    13  func Disable()                                {}
    14  func Enable()                                 {}
    15  func Read(addr unsafe.Pointer)                {}
    16  func Write(addr unsafe.Pointer)               {}
    17  func ReadRange(addr unsafe.Pointer, len int)  {}
    18  func WriteRange(addr unsafe.Pointer, len int) {}
    19  func Errors() int                             { return 0 }