]> Cypherpunks repositories - gostls13.git/commitdiff
io: document that i/o is not necessarily safe for parallel access.
authorRob Pike <r@golang.org>
Wed, 29 Feb 2012 02:30:08 +0000 (13:30 +1100)
committerRob Pike <r@golang.org>
Wed, 29 Feb 2012 02:30:08 +0000 (13:30 +1100)
Updates #1599.

R=golang-dev, adg, dsymonds
CC=golang-dev
https://golang.org/cl/5704052

src/pkg/io/io.go

index bbfa6c2b2aadf71a0053bcb3c670bc3a500f5528..3e2321ce713ce3adb3b587a4995f760dff7d4dfd 100644 (file)
@@ -6,6 +6,10 @@
 // Its primary job is to wrap existing implementations of such primitives,
 // such as those in package os, into shared public interfaces that
 // abstract the functionality, plus some other related primitives.
+//
+// Because these interfaces and primitives wrap lower-level operations with
+// various implementations, unless otherwise informed clients should not
+// assume they are safe for parallel execution.
 package io
 
 import (