projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nodestack, model: use uniform spacing, style
[c11tester.git]
/
datarace.h
diff --git
a/datarace.h
b/datarace.h
index e3cab5d6612aeb7f5770122ad27201a5245435f1..33a5c26770df7deacc5ad4f14cacf9c7a3702880 100644
(file)
--- a/
datarace.h
+++ b/
datarace.h
@@
-1,3
+1,7
@@
+/** @file datarace.h
+ * @brief Data race detection code.
+ */
+
#ifndef DATARACE_H
#include "config.h"
#include <stdint.h>
#ifndef DATARACE_H
#include "config.h"
#include <stdint.h>
@@
-19,7
+23,7
@@
void raceCheckRead(thread_id_t thread, void *location, ClockVector *currClock);
-/**
E
ncoding idea:
+/**
Basic e
ncoding idea:
* (void *) Either:
* (1) points to a full record or
*
* (void *) Either:
* (1) points to a full record or
*
@@
-29,12
+33,12
@@
void raceCheckRead(thread_id_t thread, void *location, ClockVector *currClock);
* next 23 bits are write clock vector. */
struct RaceRecord {
* next 23 bits are write clock vector. */
struct RaceRecord {
-
in
t *readClock;
+
modelclock_
t *readClock;
thread_id_t *thread;
int capacity;
int numReads;
thread_id_t writeThread;
thread_id_t *thread;
int capacity;
int numReads;
thread_id_t writeThread;
-
in
t writeClock;
+
modelclock_
t writeClock;
};
#define INITCAPACITY 4
};
#define INITCAPACITY 4