|
-
Oct 21st, 2015, 10:51 AM
#1
Thread Starter
Frenzied Member
Access Shared Buffers
Hello
I'm playing with ANT+ sensors, and now I'm wondering what's the best way to accomplish this scenario:
- I have several lists, lets call them buffers, that will receive several values at different rates/time, then in another thread that at a specific interval get "atomic" access to the buffers, and remove all the data for managing, after that release the buffers to receive new data. I don't want to loose any data, when the thread it's getting the data.
What's the best way to do this?
SyncLock , Semaphores, other way?
Thanks
Rate People That Helped You
Mark Thread Resolved When Resolved
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
|