@ -14,15 +14,15 @@ import (
"github.com/gorilla/mux"
)
// Global counter
var C counter
// Counter mutex for counter
type counter struct {
mu sync.Mutex
n int
}
// Add value to counter
func (c *counter) Add() {
c.mu.Lock()
The note is not visible to the blocked user.