|
-
January 20th, 2010, 06:17 PM
#2
Re: Mutual exclusion strategy
 Originally Posted by stolencoin
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).
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|