2012-10-23 06:31:11 +02:00
|
|
|
// 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 !race
|
|
|
|
|
|
|
|
package sync
|
|
|
|
|
|
|
|
import (
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
const raceenabled = false
|
|
|
|
|
|
|
|
func raceAcquire(addr unsafe.Pointer) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func raceRelease(addr unsafe.Pointer) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func raceReleaseMerge(addr unsafe.Pointer) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func raceDisable() {
|
|
|
|
}
|
|
|
|
|
|
|
|
func raceEnable() {
|
|
|
|
}
|
2013-11-06 20:49:01 +01:00
|
|
|
|
|
|
|
func raceRead(addr unsafe.Pointer) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func raceWrite(addr unsafe.Pointer) {
|
|
|
|
}
|