assigns workerID to the workerTR
[IRC.git] / Robust / src / Runtime / squeue.h
index b67f3b9210a4c11449772d6508d533459ebf69fe..f15c1a13f82b9077ba1b54865a42c2a675ca673a 100644 (file)
@@ -128,6 +128,7 @@ static inline void dqPushBottom( deque* p, void* work ) {
   ptr=(dequeItem *) (((unsigned INTPTR)ptr)+INCREMENTTAG);
   realptr->work=work;
   BARRIER();
+  //thread unsafe enqueue...only works if one thread enqueue to a queue
   p->tail->next=ptr;
   p->tail=realptr;
 }