summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-sched.c
blob: 2e36d31a5dc94949b50b7fa00dc7cf5e6e677d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* go-sched.c -- the runtime.Gosched function.

   Copyright 2009 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.  */

#include <sched.h>

void Gosched (void) asm ("libgo_runtime.runtime.Gosched");

void
Gosched (void)
{
  sched_yield ();
}