projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09700dd
)
more bug fixes
author
bdemsky
<bdemsky>
Tue, 22 Sep 2009 19:28:35 +0000
(19:28 +0000)
committer
bdemsky
<bdemsky>
Tue, 22 Sep 2009 19:28:35 +0000
(19:28 +0000)
Robust/src/Runtime/DSTM/interface/trans.c
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/DSTM/interface/trans.c
b/Robust/src/Runtime/DSTM/interface/trans.c
index 2db0e84c6b8bb87ee0e1ab8e37f1444f5b4bfd10..f0523147825d7dd0a658514a1cbfc90574ce6c71 100644
(file)
--- a/
Robust/src/Runtime/DSTM/interface/trans.c
+++ b/
Robust/src/Runtime/DSTM/interface/trans.c
@@
-287,6
+287,8
@@
inline int findmax(int *array, int arraylength) {
return max;
}
+#define INLINEPREFETCH 1
+
/* This function is a prefetch call generated by the compiler that
* populates the shared primary prefetch queue*/
void prefetch(int siteid, int ntuples, unsigned int *oids, unsigned short *endoffsets, short *arrayfields) {
@@
-461,8
+463,10
@@
void transInit() {
} while(retval!=0);
#endif
#endif
+#ifndef INLINEPREFETCH
pthread_detach(tPrefetch);
#endif
+#endif
}
/* This function stops the threads spawned */