8 //since if we reach SIZE, we will stop operation, it doesn't matter
9 //that we overwrite the element in the queue
10 void enqueueTR(struct trQueue *q, void * ptr) {
11 unsigned int head=q->head+1;
18 q->elements[head] = ptr;
23 void * dequeueTR(struct 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));