OSDN Git Service

Tuple receives indicate whether channel is closed.
[pf3gnuchains/gcc-fork.git] / libgo / runtime / go-lock-os-thread.c
1 /* go-lock-os-thread.c -- the LockOSThread and UnlockOSThread functions.
2
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.  */
6
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.  */
10
11 extern void LockOSThread (void) __asm__ ("libgo_runtime.runtime.LockOSThread");
12
13 void
14 LockOSThread (void)
15 {
16 }
17
18 extern void UnlockOSThread (void)
19   __asm__ ("libgo_runtime.runtime.UnlockOSThread");
20
21 void
22 UnlockOSThread (void)
23 {
24 }