7 //since if we reach SIZE, we will stop operation, it doesn't matter
8 //that we overwrite the element in the queue
9 void enqueueTR(trQueue *q, void * ptr) {
10 unsigned int head=q->head+1;
17 q->elements[head] = ptr;
23 void * dequeueTR(trQueue *q) {
24 unsigned int tail=q->tail;
28 void * ptr = q->elements[tail];
36 struct trQueue * allocTR() {
37 struct trQueue *ptr=malloc(sizeof(struct trQueue));