ivanseidel / LinkedList

🔗 A fully implemented LinkedList made to work with general Microcontrollers and Arduino projects
MIT License
350 stars 118 forks source link

Thread Protection #35

Closed justcallmekoko closed 4 years ago

justcallmekoko commented 4 years ago

I have been using a modified version of this library from another developer for some time now. The modified version seems to have the same usage syntax as this library (as expected) so I am about to transition from using the modified version to using this library. The other version I am referencing is heavily inspired by this library you have written so...thanks for making an awesome library.

The main reason for my wanting to leave the modified version and come to this one is that the modified version does not have thread protection. In one of my projects, there is a method that causes my device to crash because that method is running in parallel with another method that is accessing the same instance of the list. If both methods attempt to add and/or remove items at the same time, instant crash.

Does this library provide protection against issues like that?

justcallmekoko commented 4 years ago

Turns out yes