soundcloud/logorithm — pull request #2 by streadway (2012-07-06 09:48:48+00:00)
Title: Avoid race condidtions when incrementing sequenceNumber

Use the stack to store the latest increment and a Mutex to serialize increments.

Reproduce with `go test -cpu 4`