1 /* go-lock-os-thread.c -- the LockOSThread and UnlockOSThread functions.
3 Copyright 2009 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
7 /* The runtime.LockOSThread and runtime.UnlockOSThread functions are
8 meaningless in the current implementation, since for us a goroutine
9 always stays on a single OS thread. */
11 extern void LockOSThread (void) __asm__ ("libgo_runtime.runtime.LockOSThread");
18 extern void UnlockOSThread (void)
19 __asm__ ("libgo_runtime.runtime.UnlockOSThread");