配置多任务检查项
指定代码中使用的多任务构造,例如入口函数、中断、周期任务和时序互斥任务
要启用并发任务或线程对全局变量的共享访问的验证,请指定为 Code Prover 启用自动并发检测 (-enable-concurrency-detection) 选项。
Polyspace® 识别某些系列的多任务函数。除非您使用这些函数,否则使用此类别中的选项指定代码中的哪些函数指示入口函数、周期任务,哪些指示中断。您还必须指定对共享变量的保护机制。
Polyspace 选项
主题
- 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.