Source file src/runtime/nonwindows_stub.go

     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.
     4  
     5  //go:build !windows
     6  
     7  package runtime
     8  
     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
    14  
    15  // osRelax is called by the scheduler when transitioning to and from
    16  // all Ps being idle.
    17  func osRelax(relax bool) {}
    18  
    19  // enableWER is called by setTraceback("wer").
    20  // Windows Error Reporting (WER) is only supported on Windows.
    21  func enableWER() {}
    22  

View as plain text