package race
import "internal/race"
Package race contains helper functions for manually instrumenting code for the race detector.
The runtime package intentionally exports these functions only in the race build; this package exports them unconditionally but without the "race" build tag they are no-ops.
Index ¶
- Constants
- func Acquire(addr unsafe.Pointer)
- func Disable()
- func Enable()
- func Read(addr unsafe.Pointer)
- func ReadRange(addr unsafe.Pointer, len int)
- func Release(addr unsafe.Pointer)
- func ReleaseMerge(addr unsafe.Pointer)
- func Write(addr unsafe.Pointer)
- func WriteRange(addr unsafe.Pointer, len int)
Constants ¶
const Enabled = false
Functions ¶
func Acquire ¶
func Disable ¶
func Disable()
func Enable ¶
func Enable()
func Read ¶
func ReadRange ¶
func Release ¶
func ReleaseMerge ¶
func Write ¶
func WriteRange ¶
Source Files ¶
- Version
- v1.6.2
- Published
- Apr 19, 2016
- Platform
- darwin/amd64
- Imports
- 1 packages
- Last checked
- 12 seconds ago –
Tools for package owners.