File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
cpp/misra/src/rules/RULE-4-1-3 Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @id cpp/misra/possible-data-race-between-threads
3+ * @name RULE-4-1-3: There shall be no data races between threads
4+ * @description Threads shall not access the same memory location concurrently without utilization
5+ * of thread synchronization objects.
6+ * @kind problem
7+ * @precision medium
8+ * @problem.severity error
9+ * @tags external/misra/id/rule-4-1-3
10+ * correctness
11+ * concurrency
12+ * scope/system
13+ * external/misra/enforcement/undecidable
14+ * external/misra/obligation/required
15+ */
16+
17+ import cpp
18+ import codingstandards.cpp.misra
19+ import codingstandards.cpp.lifetimes.CppObjects as CppObjects
20+ import codingstandards.cpp.lifetimes.CppSubObjects as CppSubObjects
21+ import codingstandards.cpp.rules.possibledataracebetweenthreadsshared.PossibleDataRaceBetweenThreadsShared
22+
23+ module PossibleDataRaceBetweenThreadsConfig implements PossibleDataRaceBetweenThreadsSharedConfigSig
24+ {
25+ Query getQuery ( ) { result = UndefinedPackage:: possibleDataRaceBetweenThreadsQuery ( ) }
26+
27+ class ObjectIdentity = CppObjects:: ObjectIdentity ;
28+
29+ class SubObject = CppSubObjects:: SubObject ;
30+ }
31+
32+ import PossibleDataRaceBetweenThreadsShared< PossibleDataRaceBetweenThreadsConfig >
You can’t perform that action at this time.
0 commit comments