projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README: update for benchmarks
[model-checker.git]
/
datarace.h
diff --git
a/datarace.h
b/datarace.h
index 5bfcb8ad48cc98d007612805c2cc48567dedf984..2fb1a7f927f015628953fbf2504c20fdd133e65a 100644
(file)
--- a/
datarace.h
+++ b/
datarace.h
@@
-5,8
+5,12
@@
#ifndef DATARACE_H
#include "config.h"
#include <stdint.h>
#ifndef DATARACE_H
#include "config.h"
#include <stdint.h>
-#include "clockvector.h"
#include <vector>
#include <vector>
+#include "modeltypes.h"
+
+/* Forward declaration */
+class ClockVector;
+class ModelAction;
struct ShadowTable {
void * array[65536];
struct ShadowTable {
void * array[65536];
@@
-32,14
+36,14
@@
struct DataRace {
bool isnewwrite;
/* Address of data race. */
bool isnewwrite;
/* Address of data race. */
- void *address;
+
const
void *address;
};
#define MASK16BIT 0xffff
void initRaceDetector();
void raceCheckWrite(thread_id_t thread, void *location, ClockVector *currClock);
};
#define MASK16BIT 0xffff
void initRaceDetector();
void raceCheckWrite(thread_id_t thread, void *location, ClockVector *currClock);
-void raceCheckRead(thread_id_t thread, void *location, ClockVector *currClock);
+void raceCheckRead(thread_id_t thread,
const
void *location, ClockVector *currClock);
bool checkDataRaces();
void printRace(struct DataRace *race);
bool checkDataRaces();
void printRace(struct DataRace *race);