github.com/aloncn/graphics-go@v0.0.1/src/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,darwin,amd64 race,windows,amd64
     6  
     7  package race
     8  
     9  // This file merely ensures that we link in runtime/cgo in race build,
    10  // this is 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"