type node struct { | |
mu sync.Mutex | |
item []byte | |
key uint64 | |
next *node | |
} | |
func (n *node) lock() { | |
n.mu.Lock() | |
} | |
func (n *node) unlock() { | |
n.mu.Unlock() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment