github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/misc/cgo/test/backdoor/runtime_gccgo.c (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  // Expose some runtime functions for testing.
     6  // This is the gccgo version of runtime.c.
     7  
     8  // +build gccgo
     9  
    10  _Bool runtime_lockedOSThread(void);
    11  
    12  _Bool LockedOSThread(void) asm(GOPKGPATH ".LockedOSThread");
    13  
    14  _Bool
    15  LockedOSThread(void)
    16  {
    17  	return runtime_lockedOSThread();
    18  }