projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
assigns workerID to the workerTR
[IRC.git]
/
Robust
/
src
/
Runtime
/
squeue.h
diff --git
a/Robust/src/Runtime/squeue.h
b/Robust/src/Runtime/squeue.h
index b67f3b9210a4c11449772d6508d533459ebf69fe..f15c1a13f82b9077ba1b54865a42c2a675ca673a 100644
(file)
--- a/
Robust/src/Runtime/squeue.h
+++ b/
Robust/src/Runtime/squeue.h
@@
-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;
}