Hi everyone.

I thought I understood clearly how an RWMutex is supposed to work, but the 
documentation is giving me some troubles.
It says: "The lock can be held by an arbitrary number of readers"
which is fine by me, but then the following statement seems to contradict 
it:
"If a goroutine holds a RWMutex for reading, it must not expect this or any 
other goroutine to be able to also take the read lock until the first read 
lock is released.".
Am I missing something?

-- 
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