Configure Multitasking Checks
By default, Polyspace® supports several multitasking libraries, including the POSIX® library and the standard library for C11 and C++11. For a list of supported multitasking libraries and keywords, see Auto-Detection of Thread Creation and Critical Section in Polyspace.
If you use a different multitasking library, you can map the library you use to a
supported library by using the option -code-behavior-specifications.
Alternatively, use the options listed here to specify which functions in your code indicate entry points, cyclic tasks, or interrupts. You must also specify the protection mechanisms for shared variables.
Polyspace Options
Topics
- Analyze Multitasking Programs in Polyspace
Detect data races or deadlocks with Bug Finder, or see a comprehensive analysis of shared variable usage with Code Prover.
- Protections for Shared Variables in Multitasking Code
Protect shared variables by using critical section, temporal exclusion, priorities, or interrupt disabling.
- Define Task Priorities for Data Race Detection in Polyspace
Emulate task priorities by making tasks nonpreemptable and interrupts preemptable.
Related Information
- Global Variables (Polyspace Code Prover)