View Single Post
  #8   Spotlight this post!  
Unread 02-12-2015, 09:17 PM
pensono pensono is offline
Registered User
FRC #5495
 
Join Date: Jan 2015
Location: Snohomish, WA
Posts: 15
pensono is an unknown quantity at this point
Re: Multithreading and locking?

Quote:
Originally Posted by Skinkworks View Post
Just use global variables. Don't tell anyone (I know it's bad), but our team does't use any lock/semaphore-type structures, and we've never had a problem. Then again, the data shared between the threads is only a float and a string.
As long as you only have one writer thread, you won't run into any problems.
Reply With Quote