more bug fixes
authorbdemsky <bdemsky>
Tue, 22 Sep 2009 19:28:35 +0000 (19:28 +0000)
committerbdemsky <bdemsky>
Tue, 22 Sep 2009 19:28:35 +0000 (19:28 +0000)
Robust/src/Runtime/DSTM/interface/trans.c

index 2db0e84c6b8bb87ee0e1ab8e37f1444f5b4bfd10..f0523147825d7dd0a658514a1cbfc90574ce6c71 100644 (file)
@@ -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 */