jfssvex / tippingpoint-B

Codebase for the Team B Tipping Point robot (2021-2022).
0 stars 0 forks source link

Add thread safety #11

Closed AritroSaha10 closed 2 years ago

AritroSaha10 commented 2 years ago

Some variables are accessed from one thread to another, which might cause corruption or that kind of thing. Notable shared vars to focus on includes the TrackingData var. Thread safety can be added by either using atomic vars or mutexes, though I believe atomic vars are quickers and are therefore prefered.

AritroSaha10 commented 2 years ago

Done in add-atomic branch