remove some codes for scheduling
[IRC.git] / Robust / src / Runtime / DSTM / interface / queue.h
1 #ifndef _QUEUE_H_
2 #define _QUEUE_H_
3
4 #include<stdio.h>
5 #include<stdlib.h>
6 #include<pthread.h>
7 #include<string.h>
8
9 // DS that contains information to be shared between threads.
10 typedef struct prefetchqelem {
11         struct prefetchqelem *next;
12 } prefetchqelem_t;
13
14 typedef struct primarypfq {
15         prefetchqelem_t *front, *rear;
16         pthread_mutex_t qlock;
17         pthread_mutexattr_t qlockattr;
18         pthread_cond_t qcond;
19 } primarypfq_t; 
20
21
22 void queueInit(void);
23 void delqnode(); 
24 void queueDelete(void);
25 void pre_enqueue(prefetchqelem_t *);
26 prefetchqelem_t *pre_dequeue(void);
27 void queueDisplay();
28 void predealloc(prefetchqelem_t *);
29 #endif