Closed davmatjo closed 4 years ago
Fixes #82
Acquire the RLock() and release it immediately after read, then optionally acquire the full Lock() if templates or sampling need to be written to.
RLock()
Lock()
templates
sampling
Running with go build -race with these changes shows no data races.
go build -race
Fixes #82
Acquire the
RLock()
and release it immediately after read, then optionally acquire the fullLock()
iftemplates
orsampling
need to be written to.Running with
go build -race
with these changes shows no data races.