Quote Originally Posted by stolencoin View Post
This works, but is there a nicer or better solution?
One possibility is to have the producers write to a temporary buffer. Then when the library method returns you copy the data into the circular buffer and act on it. That way a user doesn't necessarily be quick (of course you don't need to tell the library users that).