hacks to speed up prefetching...doesn't really help though..
[IRC.git] / Robust / src / Runtime / DSTM / interface / queue.h
index 9ad5df452c5afb4bcc22cf831d0714c235590018..d8a751fdaca5dd9db5082053c2090e1fa7058d12 100644 (file)
@@ -4,19 +4,12 @@
 #include<stdio.h>
 #include<stdlib.h>
 #include<pthread.h>
-
-#define ARRAY_SIZE 20
-
-// DS that contains information to be shared between threads.
-typedef struct prefetchthreadqueue {
-       int *buffer[ARRAY_SIZE];
-       int front;
-       int rear;
-       pthread_mutex_t qlock;
-} prefetchthreadqueue_t;
-
-void queueInsert(int *);
-int *queueDelete();
-void queueInit(); //Initializes the queue and qlock mutex 
-
+#include<string.h>
+
+void queueInit(void);
+void * getmemory(int size);
+void movehead(int size);
+void * gettail();
+void inctail();
+void predealloc();
 #endif