Skip to content

Commit d336752

Browse files
Commit missing files
1 parent ce3d937 commit d336752

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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>

0 commit comments

Comments
 (0)