Merge pull request #78 from rweichler/master

made RingBuffer thread safe!