Throttled event logging is not thread-safe #3149
Labels
bug
CCB-Needs Study
F Prime needs to study this issue more in-depth before passing it through CCB
High Priority
High Priority issue that needs to be resolved.
Problem Description
Adding
throttle X
to an event (in this example, ("YY_ZZ") generates the following code:These are not thread-safe accesses to the
m_XX_YY_Throttle
variable, and so could result in dangerous behavior if two threads try to log the same event. Likely the best fix is to makem_XX_YY_Throttle
atomic, and barring that, to add a lock around reads/writes to it.Context / Environment
Execute
fprime-util version-check
and share the output.The text was updated successfully, but these errors were encountered: