aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-31 16:20:45 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-31 16:20:45 +0200
commitd34760a5b71d7f066ddb301a3057410aed8a2dc4 (patch)
treee50eeddc745e2a5dadf17807579b221ab9ed5d89 /skate
parentc77e97c6e3ee0c5b95d8529750751393c17d41e5 (diff)
downloadrefcat-d34760a5b71d7f066ddb301a3057410aed8a2dc4.tar.gz
refcat-d34760a5b71d7f066ddb301a3057410aed8a2dc4.zip
xio: mention lock
there are other lock-free implementations, such as https://github.com/cloudfoundry/go-diodes
Diffstat (limited to 'skate')
-rw-r--r--skate/xio/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/skate/xio/util.go b/skate/xio/util.go
index 90a1012..10225a1 100644
--- a/skate/xio/util.go
+++ b/skate/xio/util.go
@@ -9,7 +9,7 @@ import (
"sync"
)
-// SyncWriter makes any writer thread safe.
+// SyncWriter makes any writer thread safe, using a lock.
type SyncWriter struct {
sync.Mutex
w io.Writer