github.com/rafaeltorres324/go/src@v0.0.0-20210519164414-9fdf653a9838/runtime/race/race.go (about) 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 // +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 6 7 package race 8 9 // This file merely ensures that we link in runtime/cgo in race build, 10 // this in turn ensures that runtime uses pthread_create to create threads. 11 // The prebuilt race runtime lives in race_GOOS_GOARCH.syso. 12 // Calls to the runtime are done directly from src/runtime/race.go. 13 14 // void __race_unused_func(void); 15 import "C"