Source file src/runtime/race/race.go
Documentation: runtime/race
1 // Copyright 2012 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 && linux && amd64) || (race && freebsd && amd64) || (race && netbsd && amd64) || (race && darwin && amd64) || (race && windows && amd64) || (race && linux && ppc64le) || (race && linux && arm64) || (race && darwin && arm64) || (race && openbsd && amd64) 6 // +build race,linux,amd64 race,freebsd,amd64 race,netbsd,amd64 race,darwin,amd64 race,windows,amd64 race,linux,ppc64le race,linux,arm64 race,darwin,arm64 race,openbsd,amd64 7 8 package race 9 10 // This file merely ensures that we link in runtime/cgo in race build, 11 // this in turn ensures that runtime uses pthread_create to create threads. 12 // The prebuilt race runtime lives in race_GOOS_GOARCH.syso. 13 // Calls to the runtime are done directly from src/runtime/race.go. 14 15 // void __race_unused_func(void); 16 import "C" 17