MeshProtocolSimulator
1.0.0
|
Class, that can be used for locking specific processes from being interrupted. Those interrupts functions are done after unlocking process. This can by used also for hardware periphery control, but all write access to this control has to be inside of locked process. More...
#include <ThreadLock.h>
Class, that can be used for locking specific processes from being interrupted. Those interrupts functions are done after unlocking process. This can by used also for hardware periphery control, but all write access to this control has to be inside of locked process.
Also macro can be used instead of DoLocked method like this:
Note: To be 100% sure, variable a will not be changed in locked process. All write access to a (except from main thread) has to be done in locked process.
func | Function, that has to be done in locked mode. |