X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=datarace.h;h=2fb1a7f927f015628953fbf2504c20fdd133e65a;hb=f5ec684987a17e41940dd3c80ad2b98460181054;hp=627b8cc88c7016b27cc2660bdebdf4693e674c40;hpb=ac80452d8a9b319e38869c8ff1434ddebfc025a5;p=model-checker.git diff --git a/datarace.h b/datarace.h index 627b8cc..2fb1a7f 100644 --- a/datarace.h +++ b/datarace.h @@ -36,14 +36,14 @@ struct DataRace { 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); -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);