X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=datarace.h;h=f026556add051292ea4c57daaac4ad42255f1576;hp=67d58e7c3c12cd46387391c132c62a945b911685;hb=f269c2a1c390e82ae189bc690a750601f874283f;hpb=a9e77155aee17d9e66603f970a964bee83f62248 diff --git a/datarace.h b/datarace.h index 67d58e7c..f026556a 100644 --- a/datarace.h +++ b/datarace.h @@ -44,10 +44,15 @@ struct DataRace { void initRaceDetector(); void raceCheckWrite(thread_id_t thread, void *location); +void atomraceCheckWrite(thread_id_t thread, void *location); void raceCheckRead(thread_id_t thread, const void *location); +void atomraceCheckRead(thread_id_t thread, const void *location); void recordWrite(thread_id_t thread, void *location); -bool checkDataRaces(); +void recordCalloc(void *location, size_t size); void assert_race(struct DataRace *race); +bool hasNonAtomicStore(const void *location); +void setAtomicStoreFlag(const void *location); +void getStoreThreadAndClock(const void *address, thread_id_t * thread, modelclock_t * clock); /** * @brief A record of information for detecting data races