CiscoDevNet / csmp-agent-lib

CiscoDevNet Opensource CSMP-Agent Library (OpenCSMP)
https://github.com/CiscoDevNet/csmp-agent-lib
Apache License 2.0
4 stars 3 forks source link

Create thread-safe getters/setters to replace global variables #18

Open ismilak opened 2 months ago

ismilak commented 2 months ago

Currently Sample application operates with global instances of TLV descriptors, like Hardware_Desc. My recommendation is controlling the access and making it thread-safe by using getters/setters and FreeRTOS semaphore/mutex