summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/race/race.go
blob: e53cacf4a074f5f19c1fd6f8f6d3bfb1a7f50be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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,linux,amd64 race,darwin,amd64 race,windows,amd64

package race

// This file merely ensures that we link in runtime/cgo in race build,
// this is turn ensures that runtime uses pthread_create to create threads.
// The prebuilt race runtime lives in race_GOOS_GOARCH.syso.
// Calls to the runtime are done directly from src/pkg/runtime/race.c.

// void __race_unused_func(void);
import "C"