A lock is just a lock, a variable which is inherently synchronized, safe to 
tinker with from several goroutines concurrently.
It protects a variable iff your code uses it so. Iff you Lock before each 
access to that variable, and Unlock after it, then it's such a use.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to