Skip to content
Snippets Groups Projects
Commit 72e3c1b8 authored by Basile Desloges's avatar Basile Desloges
Browse files

[eacsl] Update "thread-unsafe" warning for E-ACSL temporal analysis

parent 59ada604
No related branches found
No related tags found
No related merge requests found
...@@ -63,8 +63,12 @@ typedef struct temporal_parameter temporal_parameter; ...@@ -63,8 +63,12 @@ typedef struct temporal_parameter temporal_parameter;
/*! \brief External array used to transfer parameters from one function /*! \brief External array used to transfer parameters from one function
* to another. * to another.
* *
* WARNING! NOT thread-safe! A better way would probably have it as * WARNING! NOT thread-safe! First these global variables are not protected from
* __thread so it is local to every thread. */ * concurrent accesses. Second the temporal system stores parameters before
* calling a function and pulls them inside the function. This is completely
* incompatible with a concurrent call since the parameters will be stored on
* one thread and pulled from another thread some later time, maybe after other
* synchronous calls. */
static temporal_parameter parameter_referents[MAX_PARAMETERS]; static temporal_parameter parameter_referents[MAX_PARAMETERS];
static uint32_t return_referent; static uint32_t return_referent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment