2018-23-01 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgo / go / runtime / relax_stub.go
blob81ed1291b8b812435414ca254d32bbfa264e70d1
1 // Copyright 2017 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.
5 // +build !windows
7 package runtime
9 // osRelaxMinNS is the number of nanoseconds of idleness to tolerate
10 // without performing an osRelax. Since osRelax may reduce the
11 // precision of timers, this should be enough larger than the relaxed
12 // timer precision to keep the timer error acceptable.
13 const osRelaxMinNS = 0
15 // osRelax is called by the scheduler when transitioning to and from
16 // all Ps being idle.
17 func osRelax(relax bool) {}