Global variables shared between multiple tasks but not protected from concurrent access by the tasks
A shared unprotected global variable has the following properties:
The variable is used in more than one task.
Polyspace® determines that at least one operation on the variable is not protected from interruption by operations in other tasks.
In code that is not intended for multitasking, all global variables are non-shared.
In your verification results, these variables are colored orange on the Source, Results List and Variable Access panes. On the Source pane, the coloring is applied to the variable only during declaration.
| Language: C | C++ |
Critical section details (-critical-section-begin
-critical-section-end) | Multitasking | Shared
variable | Show global variable sharing and usage only
(-shared-variables-mode) | Tasks (-entry-points) | Temporally exclusive tasks
(-temporal-exclusions-file) | Unused
variable | Used
non-shared variable