zinkwazi / traffic-pcb-sb

1 stars 0 forks source link

Convert global static variables to TLS variables #12

Open jdbaptista opened 2 weeks ago

jdbaptista commented 2 weeks ago

A task should not be able to change static variables that are necessary for another task to function properly.

jdbaptista commented 5 days ago

This is probably not the best idea and rather indicates that something should change in the architecture. A better alternative is to pass variables to tasks when they are created, or have calling functions store the variable on their stack through multiple calls to the callee function.