]> Cypherpunks repositories - gostls13.git/commitdiff
doc: mention that Go no longer calls timeBeginPeriod(1) on Windows
authorRuss Cox <rsc@golang.org>
Thu, 7 Jan 2016 02:28:06 +0000 (21:28 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 7 Jan 2016 04:16:14 +0000 (04:16 +0000)
Fixes #13731.

Change-Id: Iaf70a8b41c947f0d86013808564112ab676136e3
Reviewed-on: https://go-review.googlesource.com/18345
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
doc/go1.6.html

index 9192ca0c61f52091a7486e22acf7c3af8265ab32..3ae96b82a9251fd3525e156e54ccf55900d87a3e 100644 (file)
@@ -332,6 +332,15 @@ Searching for uses of
 <a href="/pkg/os/signal/#Notify"><code>signal.Notify</code></a> may help identify such code.
 </p>
 
+<p>
+On Windows, Go programs in Go 1.5 and earlier forced
+the global Windows timer resolution to 1ms at startup
+by calling <code>timeBeginPeriod(1)</code>.
+Go no longer needs this for good scheduler performance,
+and changing the global timer resolution caused problems on some systems,
+so the call has been removed.
+</p>
+
 <h3 id="reflect">Reflect</h3>
 
 <p>