made RingBuffer thread safe!
Merge pull request #78 from rweichler/master

made RingBuffer thread safe!