prometheus/prometheus — pull request #130 by juliusv (2013-04-10 17:12:12+00:00)
Title: Make expression parser goroutine-safe.

See https://github.com/prometheus/prometheus/issues/127

I prefer a mutex over a channel in this case because it doesn't require me to spin up another long-lived goroutine just for reading parse-requests from a channel.